diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php index 5f3d02dfd0..c6c137dba2 100644 --- a/apps/files_external/lib/Lib/Storage/SFTP.php +++ b/apps/files_external/lib/Lib/Storage/SFTP.php @@ -407,13 +407,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;