summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorHenrik Kjölhede <hkjolhede@gmail.com>2013-02-09 23:29:58 +0100
committerHenrik Kjölhede <hkjolhede@gmail.com>2013-02-09 23:29:58 +0100
commit9e42a36fd854797c3674c047dfe672dad4b726be (patch)
treec4595b6f0a3f31bb7889caacf81aee44ccbe562a /apps/files_external
parent674955d1b64abe454dbd894d44d4d78e882b0fe8 (diff)
downloadnextcloud-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.php6
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) {