FSAn abstract class for writing to the filesystem. We use this to access the concrete subclasses for native filesystem and FTP access. Maybe one day there will be some other useful method for filesystem access.... Summary
mkdir
Create a new directory. For this function, the immediate parent directory must exist Paremeters
ReturnsFalse on failure, an unspecified non-false value on success. mkdir_rec
Recursive version of mkdir. This will create all non-existent parents of the target path. Parameters
RetrunsFalse on failure, a non-false value on success. rmdir
Recursive version of rmdir. Remove a directory and all files and directories it contains. Parameters
ReturnsTrue on success, false on failure. |
An explicitly called destructor because PHP 4 doesn’t have proper destructors.
function destruct()
Get the working directory for the class.
function getcwd()
Change working directory
function chdir( $dir )
Create a new directory.
function mkdir( $dir, $mode = 0777 )
Recursive version of mkdir.
function mkdir_rec( $dir, $mode = 0777 )
Remove an empty directory.
function rmdir( $dir )
Change permissions on a file or directory.
function chmod( $path, $mode )
Copy a single file.
function copy( $src, $dest )
Move or rename a file.
function rename( $src, $dest )
Delete a single file.
function delete( $src )
Write a string to a new text file.
function write_file( $path, $contents )