diff --git a/storage-controllers/ftp.controller.php b/storage-controllers/ftp.controller.php index 4065ce7..0bd8e1e 100644 --- a/storage-controllers/ftp.controller.php +++ b/storage-controllers/ftp.controller.php @@ -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); }