Property | Type | Description | |
---|---|---|---|
$create | |||
$directory | |||
$initialized | |||
$sftp |
Method | Description | |
---|---|---|
__construct ( |
||
createFile ( $key, Gaufrette\Filesystem $filesystem ) | ||
delete ( $key ) | ||
exists ( $key ) | ||
isDirectory ( $key ) | ||
keys ( ) | ||
listKeys ( $prefix = '' ) | ||
mtime ( $key ) | ||
read ( $key ) | ||
rename ( $sourceKey, $targetKey ) | ||
write ( $key, $content ) |
Method | Description | |
---|---|---|
computePath ( $key ) | ||
ensureDirectoryExists ( $directory, $create ) | ||
fetchKeys ( $directory = '', $onlyKeys = true ) | ||
initialize ( ) | Performs the adapter's initialization. |
public __construct ( |
||
$sftp | An Sftp instance | |
$directory | string | The distant directory |
$create | boolean | Whether to create the remote directory if it does not exist |
public createFile ( $key, Gaufrette\Filesystem $filesystem ) | ||
$filesystem | Gaufrette\Filesystem |