diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php index d1aea027cee83..73cf31bcc9b8c 100644 --- a/apps/files_external/lib/Lib/Storage/SFTP.php +++ b/apps/files_external/lib/Lib/Storage/SFTP.php @@ -406,13 +406,10 @@ public function fopen($path, $mode) { */ 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;