Méthode |
Description |
|
__construct ( $url, $passiveMode = TRUE ) |
|
|
connect ( ) : void |
Connects to FTP server. |
|
createDir ( $dir ) : void |
Creates directories on FTP server. |
|
execute ( $command ) : string |
Executes a command on a remote server. |
|
getDir ( ) : string |
Returns current directory. |
|
purge ( $dir, callable $progress = NULL ) : void |
Recursive deletes content of directory or file. |
|
readFile ( $remote, $local ) : void |
Reads remote file from FTP server. |
|
removeDir ( $dir ) : void |
Removes directory from FTP server if exists. |
|
removeFile ( $file ) : void |
Removes file from FTP server if exists. |
|
renameFile ( $old, $new ) : void |
Renames and rewrites file on FTP server. |
|
writeFile ( $local, $remote, callable $progress = NULL ) : void |
Uploads file to FTP server. |
|