API16

API16:JFile

From Joomla! Documentation

Revision as of 13:59, 24 March 2017 by JoomlaWikiBot (talk | contribs) (clean up)

{{subst:Description:JFile}}

Defined in

libraries/joomla/filesystem/file.php

Methods

Method name Description
getExt Gets the extension of a file name
stripExt Strips the last extension off a file name
makeSafe Makes file name safe to use
copy Copies a file
delete Delete a file or array of files
move Moves a file
read Read the contents of a file
write Write contents to a file
upload Moves an uploaded file to a destination folder
exists Wrapper for the standard file_exists function
getName Returns the name, sans any path

Importing

jimport( 'joomla.filesystem.file' );


{{subst:SeeAlso:JFile}}

Examples

<CodeExamplesForm />