aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files
diff options
context:
space:
mode:
authorJesus Macias <jmacias@full-on-net.com>2014-09-03 18:20:09 +0200
committerJesus Macias <jmacias@full-on-net.com>2014-09-03 18:20:09 +0200
commit883649b69cb3a1cbfa2b56e090bddc07e4cfff7d (patch)
treedbaca0ad67a224ceb2cf708e2ddf4491638fc19b /lib/private/files
parent7d4317e9fbf1db4e2443344dfed1d25ecc6f1a9a (diff)
downloadnextcloud-server-883649b69cb3a1cbfa2b56e090bddc07e4cfff7d.tar.gz
nextcloud-server-883649b69cb3a1cbfa2b56e090bddc07e4cfff7d.zip
Reset changes on 3rdparty submodule
Diffstat (limited to 'lib/private/files')
-rw-r--r--lib/private/files/view.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index d310a0fa4e1..1af2f775603 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -304,7 +304,13 @@ class View {
$hooks[] = 'write';
}
$result = $this->basicOperation('touch', $path, $hooks, $mtime);
- if (!$result) { //if native touch fails, we emulate it by changing the mtime in the cache
+ if (!$result) {
+ // If create file fails because of permissions on external extorage like sharepoint,
+ // check file exists and return false if not.
+ if(!$this->file_exists($path)){
+ return false;
+ }
+ //if native touch fails, we emulate it by changing the mtime in the cache
$this->putFileInfo($path, array('mtime' => $mtime));
}
return true;