Property | Type | Description | |
---|---|---|---|
$contents | |||
$isDirectory | |||
$key | |||
$size | |||
$storage | |||
$timeModified | |||
$url |
Method | Description | |
---|---|---|
__construct ( string $key, |
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) |
public __construct ( string $key, |
||
$key | string | File key |
$storage | Storage to use | |
return |
public getAbsolutePath ( ) : string | ||
return | string |
public isDirectory ( ) : boolean | ||
return | boolean |
protected Storage,Webiny\Component\Storage $storage | ||
return |