diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-25 12:44:27 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-25 12:44:27 +0100 |
commit | d88025bf6b1d8b146605da6c518c4af9624394a4 (patch) | |
tree | 999e57691e920e1cd8996a43cc302f997ebf2385 /apps/files_external/lib/dropbox.php | |
parent | b82146eeee2c969a53dd42cebf06ecfd31a0e286 (diff) | |
download | nextcloud-server-d88025bf6b1d8b146605da6c518c4af9624394a4.tar.gz nextcloud-server-d88025bf6b1d8b146605da6c518c4af9624394a4.zip |
Fixed ext storage touch function to return true on success
Some ext storage impl didn't return true on success.
Fixes #5943 (Dropbox)
Fixes #6010 (WebDAV)
Diffstat (limited to 'apps/files_external/lib/dropbox.php')
-rwxr-xr-x | apps/files_external/lib/dropbox.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php index 6e464f4e287..5f603b7fe43 100755 --- a/apps/files_external/lib/dropbox.php +++ b/apps/files_external/lib/dropbox.php @@ -269,7 +269,11 @@ class Dropbox extends \OC\Files\Storage\Common { } public function touch($path, $mtime = null) { - return false; + if ($this->file_exists($path)) { + return false; + } else { + $this->file_put_contents($path, ''); + } } } |