remove() public method

Remove a file or a directory.
See also: FtpClient::rmdir()
See also: FtpClient::cleanDir()
See also: FtpClient::delete()
public remove ( string $path, boolean $recursive = false ) : boolean
$path string The path of the file or directory to remove
$recursive boolean Is effective only if $path is a directory, {@see \FtpClient::rmdir()}
return boolean
Beispiel #1
0
 public function uploadFile($localPath)
 {
     $file = "/" . $this->environment . "/" . self::APP_NAME . "/" . self::FILE_NAME;
     $this->connection->remove($file);
     $this->connection->put($file, $localPath, FTP_BINARY);
 }