|
static | addDirSeparator ($path) |
| Add a directory separator to the path (if not present) More...
|
|
static | windows ($filename) |
| Normalize a Windows filename. More...
|
|
static | inDir ($path, $filename) |
| Check if a filename is within a directory. More...
|
|
static | inBaseDir ($filename) |
| Check if a filename is within the base dir restriction. More...
|
|
static | mkdir ($path, $mode=0777) |
| Create a directory (if not exists). More...
|
|
static | rmdir ($path) |
| Recursivly remove a directory, including all files. More...
|
|
static | dirname ($path, $levels=1) |
| Dirname that does not care about separator, and does not return '. More...
|
|
static | basename ($path) |
| Basename that does not care about separator, and also removes possible query parameters. More...
|
|
static | ext ($filename, $lower_case=true) |
| Get extension of a filename. More...
|
|
static | changeExt ($filename, $ext) |
| Change the extension of a filename. More...
|
|
static | tempDir () |
| Temporarily directory of the system. More...
|
|
static | tempFile ($ext='tmp', $data=null) |
| Create a temporarily file. More...
|
|
static | mtime ($filename) |
| Optimistic filemtime (no need to check file_exists() first). More...
|
|
static | unlink ($filename) |
| Safe unlink. More...
|
|
static | write ($filename, $data, $mode=null, $append=false) |
| Write data to a file. More...
|
|
static | read ($filename, $default=false) |
| Read the content of a file. More...
|
|
static | serialize ($filename, $data, $mode=null) |
| Serialize data and write it to a file. More...
|
|
static | unserialize ($filename, $default=false) |
| Unserialize the content of a file. More...
|
|
static | jsonEncode ($filename, $data, $mode=null, $options=JSON_PRETTY_PRINT) |
| Encode data to JSON and write it to a file. More...
|
|
static | jsonDecode ($filename, $default=false, $assoc=true) |
| Decode the JSON content of a file. More...
|
|
static | mime ($filename) |
| Get MIME type for a file. More...
|
|
static | find ($path, $filters=null, $recursive=false) |
| Find and filter files. More...
|
|
static | dir ($path, $pattern=null, $recursive=false) |
| Find files. More...
|
|
File and file system helper functions.
Definition at line 8 of file File.php.