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