Метод |
Описание |
|
connect ( ) : void |
Connects to server. |
|
createDir ( $dir ) : void |
Creates directories on server. Path is absolute. |
|
execute ( $command ) : string |
Executes a command on a remote server. |
|
getDir ( ) : string |
Returns current directory. |
|
purge ( $path, callable $progress = NULL ) : void |
Recursive deletes content of directory or file. Path is absolute. |
|
readFile ( $remote, $local ) : void |
Reads file from server. Paths are absolute. |
|
removeDir ( $dir ) : void |
Removes directory from server if exists. Path is absolute. |
|
removeFile ( $file ) : void |
Removes file from server if exists. Path is absolute. |
|
renameFile ( $old, $new ) : void |
Renames and rewrites file on server. Paths are absolute. |
|
writeFile ( $local, $remote, callable $progress = NULL ) : void |
Uploads file to server. Paths are absolute. |
|