diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php index d1aea027cee83..5dbc39423b584 100644 --- a/apps/files_external/lib/Lib/Storage/SFTP.php +++ b/apps/files_external/lib/Lib/Storage/SFTP.php @@ -405,19 +405,7 @@ public function fopen($path, $mode) { * {@inheritdoc} */ 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; - } - } catch (\Exception $e) { - return false; - } - return true; + return $this->getConnection()->touch($this->absPath($path), $mtime); } /**