| API | Package | Subpackage | Class | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
FileSystem |
JFile |
JFile |
Never | Work in Progress |
JFile is a file handling class which provides an interface to the file system. This is a static class and so its methods are available without needing an instantiation of the class.
| Method | Description |
|---|---|
copy | Copies a file. |
delete | Delete a file or array of files. |
exists | Wrapper for the standard file_exists function. |
getExt | Gets the extension of a file name. |
getName | Returns filename component of path. |
makeSafe | Makes file name safe to use. |
move | Moves a file. |
read | Read the contents of a file. |
stripExt | Strips the last extension off a file name. |
upload | Moves an uploaded file to a destination folder. |
write | Write contents to a file. |