public function BackupMigrateDestinationSFTP::_delete_file in Backup and Migrate SFTP 7
Delete a remote file.
File
- ./
destinations.sftp.inc, line 96 - Functions to handle the SFTP backup destination.
Class
- BackupMigrateDestinationSFTP
- A destination for sending database backups to an SFTP server.
Code
public function _delete_file($file_id) {
if (!$this
->sftpConnect()) {
return FALSE;
}
$sftp = $this->sftp;
$path = $this->dest_url['path'];
unlink("ssh2.sftp://{$sftp}/{$path}/{$file_id}");
}