Метод |
Описание |
|
base ( string $path ) : string |
|
|
clean ( string $path, string $dirSep = DIRECTORY_SEPARATOR ) : string |
Function to strip additional / or \ in a path name. |
|
dirSize ( string $dir ) : integer |
Returns size of a given directory in bytes. |
|
dirname ( string $path ) : string |
|
|
executable ( string $filename, boolean $executable = true ) : boolean |
Set the executable bit on a file to the minimum value that allows the user running PHP to read to it. |
|
ext ( string $path ) : string |
|
|
filename ( string $path ) : string |
|
|
firstLine ( string $filepath ) : string |
Quickest way for getting first file line |
|
format ( integer $bytes, integer $decimals = 2 ) : string |
Nice formatting for computer sizes (Bytes). |
|
getRelative ( string $filePath, string | null $rootPath = null, string $forceDS = DIRECTORY_SEPARATOR, boolean $toRealpath = true ) : mixed |
Find relative path of file (remove root part) |
|
isDir ( string $path ) : boolean |
Check is current path directory |
|
isFile ( string $path ) : boolean |
Check is current path regular file |
|
isReal ( $path ) : boolean |
|
|
ls ( string $dir ) : array |
Returns all paths inside a directory. |
|
openFile ( $filepath ) : null | string |
Binary safe to open file |
|
perms ( string $file, integer $perms = null ) : string |
Returns the file permissions as a nice string, like -rw-r--r-- or false if the file is not found. |
|
readable ( string $filename, boolean $readable = true ) : boolean |
Set the readable bit on a file to the minimum value that allows the user running PHP to read to it. |
|
real ( string $path ) : string |
|
|
rmdir ( string $dir, boolean $traverseSymlinks = false ) : boolean |
Removes a directory (and its contents) recursively. |
|
stripExt ( string $path ) : string |
Strip off the extension if it exists. |
|
writable ( string $filename, boolean $writable = true ) : boolean |
Set the writable bit on a file to the minimum value that allows the user running PHP to write to it. |
|