From 6ebb83eee91add46f3f6cf58c5fe4f865cd5cb9a Mon Sep 17 00:00:00 2001 From: Marcel Sander Date: Wed, 19 Aug 2020 00:24:42 +0200 Subject: [PATCH] SFTP-Storage: Correctly Sync mtime Signed-off-by: Marcel Sander --- apps/files_external/lib/Lib/Storage/SFTP.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php index d1aea027ce..73cf31bcc9 100644 --- a/apps/files_external/lib/Lib/Storage/SFTP.php +++ b/apps/files_external/lib/Lib/Storage/SFTP.php @@ -406,13 +406,10 @@ class SFTP extends \OC\Files\Storage\Common { */ public function touch($path, $mtime=null) { try { - if (!is_null($mtime)) { - return false; - } if (!$this->file_exists($path)) { $this->getConnection()->put($this->absPath($path), ''); } else { - return false; + $this->getConnection()->touch($this->absPath($path), $mtime); } } catch (\Exception $e) { return false;