As you can take from the Roadmap
the 1.8 branch contains a redesigned FilesystemManager
. The new component was cleaned the
dependencies to the core
namespace and moved to the tools
The class posesses the following methods:
Deletes a folder. If the second param is set to true, the folder is deleted recursively.
createFolder(): Creates a folder in recursive style. The second param can be
used to indicate the umask.
copyFile(): Copies a file.
removeFile(): Deletes a file.
uploadFile(): Handles a file uploaded via HTTP.
renameFile(): Renames a file.
getFolderContent(): Returns a list of files/folders within a folder.
getFileAttributes(): Returns an associative array of file attributes.
getFolderSize(): Returns the size of a folder.
Details on the params and return values can be seen in the API documentation of the desired release
. The class must be included by
prior to use.
Do you want to add a comment to the article above, or do you want to post additional hints? So please click
Comments already posted can be found below.
There are no comments belonging to this article.