메소드 |
설명 |
|
allFiles ( string $directory, boolean $hidden = false ) : array |
Get all of the files from the given directory (recursive). |
|
append ( string $path, string $data ) : integer |
Append to a file. |
|
basename ( string $path ) : string |
Extract the trailing name component from a file path. |
|
cleanDirectory ( string $directory ) : boolean |
Empty the specified directory of all files and folders. |
|
copy ( string $path, string $target ) : boolean |
Copy a file to a new location. |
|
copyDirectory ( string $directory, string $destination, integer $options = null ) : boolean |
Copy a directory from one location to another. |
|
delete ( string | array $paths ) : boolean |
Delete the file at a given path. |
|
deleteDirectory ( string $directory, boolean $preserve = false ) : boolean |
Recursively delete a directory. |
|
directories ( string $directory ) : array |
Get all of the directories within a given directory. |
|
dirname ( string $path ) : string |
Extract the parent directory from a file path. |
|
exists ( string $path ) : boolean |
Determine if a file or directory exists. |
|
extension ( string $path ) : string |
Extract the file extension from a file path. |
|
files ( string $directory ) : array |
Get an array of all files in a directory. |
|
get ( string $path, boolean $lock = false ) : string |
Get the contents of a file. |
|
getRequire ( string $path ) : mixed |
Get the returned value of a file. |
|
glob ( string $pattern, integer $flags ) : array |
Find path names matching a given pattern. |
|
hasMacro ( string $name ) : boolean |
Checks if macro is registered. |
|
isDirectory ( string $directory ) : boolean |
Determine if the given path is a directory. |
|
isFile ( string $file ) : boolean |
Determine if the given path is a file. |
|
isWritable ( string $path ) : boolean |
Determine if the given path is writable. |
|
lastModified ( string $path ) : integer |
Get the file's last modification time. |
|
macro ( string $name, callable $macro ) : void |
Register a custom macro. |
|
makeDirectory ( string $path, integer $mode = 493, boolean $recursive = false, boolean $force = false ) : boolean |
Create a directory. |
|
mimeType ( string $path ) : string | false |
Get the mime-type of a given file. |
|
move ( string $path, string $target ) : boolean |
Move a file to a new location. |
|
moveDirectory ( string $from, string $to, boolean $overwrite = false ) : boolean |
Move a directory. |
|
name ( string $path ) : string |
Extract the file name from a file path. |
|
prepend ( string $path, string $data ) : integer |
Prepend to a file. |
|
put ( string $path, string $contents, boolean $lock = false ) : integer |
Write the contents of a file. |
|
requireOnce ( string $file ) : mixed |
Require the given file once. |
|
sharedGet ( string $path ) : string |
Get contents of a file with shared access. |
|
size ( string $path ) : integer |
Get the file size of a given file. |
|
type ( string $path ) : string |
Get the file type of a given file. |
|