메소드 |
설명 |
|
__construct ( string $key, Storage $storage ) : File |
Construct a File instance |
|
delete ( ) |
|
|
exists ( ) : boolean |
Check if file exists |
|
getAbsolutePath ( ) : string |
Get absolute file path. |
|
getContents ( ) |
|
|
getKey ( ) |
|
|
getSize ( ) : integer | null |
Get file size in bytes |
|
getStorage ( ) |
|
|
getTimeModified ( $asDateTimeObject = false ) |
|
|
getUrl ( ) |
|
|
isDirectory ( ) : boolean |
Checks if file is a directory. |
|
rename ( $newKey ) |
|
|
setContents ( $contents, $append = false ) |
|
|
touch ( ) |
Touch a file (change time modified) |
|