Property | Type | Description | |
---|---|---|---|
$connection | |||
$create | |||
$directory | |||
$fileData | |||
$host | |||
$mode | |||
$passive | |||
$password | |||
$port | |||
$ssl | |||
$username | |||
$utf8 |
Method | Description | |
---|---|---|
__construct ( string $directory, string $host, array $options = [] ) | ||
createFile ( $key, Gaufrette\Filesystem $filesystem ) | ||
delete ( $key ) | ||
exists ( $key ) | ||
isDirectory ( $key ) | ||
keys ( ) | ||
listDirectory ( string $directory = '' ) : array | Lists files from the specified directory. If a pattern is specified, it only returns files matching it. | |
listKeys ( $prefix = '' ) | ||
mtime ( $key ) | ||
read ( $key ) | ||
rename ( $sourceKey, $targetKey ) | ||
write ( $key, $content ) |
Method | Description | |
---|---|---|
createDirectory ( string $directory ) | Creates the specified directory and its parent directories. | |
ensureDirectoryExists ( string $directory, boolean $create = false ) | Ensures the specified directory exists. If it does not, and the create parameter is set to TRUE, it tries to create it. |
Method | Description | |
---|---|---|
close ( ) | Closes the adapter's ftp connection. | |
computePath ( string $key ) | Computes the path for the given key. | |
connect ( ) | Opens the adapter's ftp connection. | |
fetchKeys ( $directory = '', $onlyKeys = true ) | ||
getConnection ( ) : resource | Returns an opened ftp connection resource. If the connection is not already opened, it open it before. | |
isConnected ( ) : boolean | Indicates whether the adapter has an open ftp connection. | |
isDir ( string $directory ) : boolean | ||
isLinuxListing ( $info ) | ||
parseRawlist ( array $rawlist ) : array | Parses the given raw list. |
protected createDirectory ( string $directory ) | ||
$directory | string | Directory to create |
public createFile ( $key, Gaufrette\Filesystem $filesystem ) | ||
$filesystem | Gaufrette\Filesystem |
protected ensureDirectoryExists ( string $directory, boolean $create = false ) | ||
$directory | string | |
$create | boolean | Whether to create the directory if it does not exist |
public listDirectory ( string $directory = '' ) : array | ||
$directory | string | The path of the directory to list from |
return | array | An array of keys and dirs |