From 68de83b46a43ce2c3028f29f1dcdbe62d4cb3401 Mon Sep 17 00:00:00 2001 From: Christian Haschek Date: Tue, 19 Jan 2021 11:27:21 +0100 Subject: [PATCH] fixed ftp delete --- storage-controllers/ftp.controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }