mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 18:56:21 +00:00
fixed ftp delete
This commit is contained in:
@@ -78,7 +78,8 @@ class FTPStorage implements StorageController
|
||||
function deleteFile($hash)
|
||||
{
|
||||
if(!$this->connect()) return false;
|
||||
$ftpfilepath = FTP_BASEDIR.$hash;
|
||||
$subdir = $this->hashToDir($hash);
|
||||
$ftpfilepath = FTP_BASEDIR.$subdir.'/'.$hash;
|
||||
return (ftp_delete($this->connection,$ftpfilepath)?true:false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user