diff options
author | Henrik Kjölhede <hkjolhede@gmail.com> | 2013-02-09 23:29:58 +0100 |
---|---|---|
committer | Henrik Kjölhede <hkjolhede@gmail.com> | 2013-02-09 23:29:58 +0100 |
commit | 9e42a36fd854797c3674c047dfe672dad4b726be (patch) | |
tree | c4595b6f0a3f31bb7889caacf81aee44ccbe562a /apps/files_external | |
parent | 674955d1b64abe454dbd894d44d4d78e882b0fe8 (diff) | |
download | nextcloud-server-9e42a36fd854797c3674c047dfe672dad4b726be.tar.gz nextcloud-server-9e42a36fd854797c3674c047dfe672dad4b726be.zip |
Update to touch
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/sftp.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index e5e9ea8b0fa..c6be3f96bab 100644 --- a/apps/files_external/lib/sftp.php +++ b/apps/files_external/lib/sftp.php @@ -239,12 +239,16 @@ class SFTP extends OC\Files\Storage\Common { public function touch($path, $mtime=null) { try { + if ($mtime != null) return false; if (!$this->file_exists($path)) { $this->client->put($this->abs_path($path), ''); + } else { + return false; } } catch (Exception $e) { + return false; } - + return true; } public function getFile($path, $target) { |