Download the PHP package heartsentwined/file-system-manager without Composer
On this page you can find all versions of the php package heartsentwined/file-system-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heartsentwined/file-system-manager
More information about heartsentwined/file-system-manager
Files in heartsentwined/file-system-manager
Package file-system-manager
Short Description A collection of file and directory management functions.
License ISC
Homepage https://github.com/yalesov/php-file-system-manager
Informations about the package file-system-manager
Yalesov\FileSystemManager
A collection of often-used file and directory management functions not present in PHP core.
Installation
Usage
Recursively iterate the directory foo
, listing all files (child-last):
Recursively iterate the directory foo
, listing all directories (child-first):
Recursive rmdir: remove the directory foo
along with all child directories and files
Recursive copy: copy the directory foo
to bar
along with all child directories and files
Warning: this function overwrites existing files
rcopy
will copy into existing directories if they already exist. By default, it will create non-existent directories with permission 0755
. You can change this by specifying the third parameter:
Recursive chmod: chmod the directory foo
to 0755
, along with all child directories and files
Recursive chown: chown the directory foo
to www-data
, along with all child directories and files
Recursive chgrp: chgrp the directory foo
to www-data
, along with all child directories and files