Метод |
Описание |
|
convertUnitFileSize ( integer $size ) : string |
Converts file size in bytes to a string with unit. |
|
copyContent ( string $inputFile, string $outputFile, integer $bufferSize = 1024 ) |
Copies content from $inputFile to $outputFile. |
|
delete ( string $path ) : boolean |
Deletes file, throws FileNotFoundException if the file does not exist. |
|
deleteIfExists ( $path ) : boolean |
Deletes file if exists, otherwise return false if the file does not exist. |
|
exists ( string $path ) : boolean |
Checks if the given file exists. |
|
getFilesRecursivelyWithSpecifiedExtension ( string $dir, string $extension ) : array |
Returns all files from the given directory that have the given extension. |
|
load ( string $path, boolean $loadOnce = true ) |
Loads a file using require or require_once if the $loadOnce flag is set to true, if the file does not exist, throws FileNotFoundException. |
|
loadIfExists ( string $path, boolean $loadOnce = true ) : boolean |
Loads a file using require or require_once if the $loadOnce flag is set to true. |
|
mimeType ( string $path ) : string |
Returns mime type for the given file path. |
|
move ( string $sourcePath, string $destinationPath ) : boolean |
Moves file from the source to the destination, throws FileNotFoundException if the source directory does not exist. |
|
size ( string $path ) : integer |
Returns a size of the given file. |
|