FileSystem
class FileSystem
File system tool.
Methods
static void
createDir($dir, $mode = 0777)
Creates a directory.
static void
copy($source, $dest, $overwrite = TRUE)
Copies a file or directory.
static void
delete($path)
Deletes a file or directory.
static void
rename($name, $newName, $overwrite = TRUE)
Renames a file or directory.
static string
read($file)
Reads file content.
static void
write($file, $content, $mode = 0666)
Writes a string to a file.
static bool
isAbsolute($path)
Is path absolute?
Details
at line 24
static void
createDir($dir, $mode = 0777)
Creates a directory.
at line 38
static void
copy($source, $dest, $overwrite = TRUE)
Copies a file or directory.
at line 73
static void
delete($path)
Deletes a file or directory.
at line 98
static void
rename($name, $newName, $overwrite = TRUE)
Renames a file or directory.
at line 121
static string
read($file)
Reads file content.
at line 136
static void
write($file, $content, $mode = 0666)
Writes a string to a file.
at line 152
static bool
isAbsolute($path)
Is path absolute?