Метод |
Описание |
|
append ( string $path, string $contents ) |
Appends contents to file. |
|
copyDir ( string $source, string $destination ) |
Copy a directory. |
|
copyFile ( string $source, string $destination ) |
Copy a file. |
|
create ( string $path, string $contents ) |
Create a new file or overwrite existing one. |
|
createDir ( string $dirname, string $visibility = Filesystem::VISIBILITY_DEFAULT ) |
Create a directory. |
|
createFile ( string $path, string $contents = '', string $visibility = Filesystem::VISIBILITY_DEFAULT ) |
Create a new file. |
|
eraseDir ( string $dirname = '' ) |
Erase a directory. |
|
eraseFile ( string $path ) |
Erase a file. |
|
exists ( string $path ) : boolean |
Check whether a file or directory exist. |
|
getContents ( string $directory = '', boolean $recursive = false, string | string[] $filterPatterns = [] ) : array |
List contents of a directory. |
|
getDirectories ( string $directory = '', boolean $recursive = false, string | string[] $filterPatterns = [] ) : array |
List directories of a directory. |
|
getFiles ( string $directory = '', boolean $recursive = false, string | string[] $filterPatterns = [] ) : array |
List files of a directory. |
|
getMimetype ( string $path ) : string |
Get mimetype of a file. |
|
getSize ( $path ) : integer |
Returns size of a file. |
|
getTimestamp ( string $path ) : string |
Get timestamp of a file. |
|
getType ( string $path ) : string |
Get type of a file. |
|
getVisibility ( string $path ) : string |
Get visibility of a file or directory. |
|
isDir ( string $path ) : boolean |
Check if path is a file. |
|
isFile ( string $path ) : boolean |
Check if path is a file. |
|
isPrivate ( string $path = '' ) : boolean |
Check if file or directory is private. |
|
isPublic ( string $path = '' ) : boolean |
Check if file or directory is public. |
|
move ( string $source, string $destination ) |
Move (rename) a file or directory. |
|
prepend ( string $path, string $contents ) |
Prepends contents to file. |
|
read ( string $path ) : string |
Read a file. |
|
removeDir ( string $dirname ) |
Remove a directory. |
|
removeFile ( string $path ) |
Remove a file. |
|
req ( string $path ) : mixed |
Require a file. |
|
setPrivate ( string $path = '' ) |
Sets visibility of file or directory to private. |
|
setPublic ( string $path = '' ) |
Sets visibility of file or directory to public. |
|
setVisibility ( string $path, string $visibility ) |
Set visibility of a file or directory. |
|
write ( string $path, string $contents ) |
Overwrite existing file. |
|