public function deleteFile($remoteFile) { $this->_connect(); $file = new Centurion_Ftp_File($remoteFile, $this); $file->delete(); }
/** * Upload a local file to the current directory * * @param string $localFilepath The full path and filename to upload * @param int $mode [optional] The transfer mode * @param string $remoteFilename [optional] Filename to save to on the server * @return Centurion_Ftp_File */ public function put($localFilepath, $mode = null, $remoteFilename = null) { if ($remoteFilename == null) { $remoteFilename = basename($localFilepath); } $remoteFilepath = $this->_path . '/' . $remoteFilename; $file = new Centurion_Ftp_File($remoteFilepath, $this->_ftp); $file->put($localFilepath, $mode); return $file; }