From 883649b69cb3a1cbfa2b56e090bddc07e4cfff7d Mon Sep 17 00:00:00 2001 From: Jesus Macias Date: Wed, 3 Sep 2014 18:20:09 +0200 Subject: Reset changes on 3rdparty submodule --- lib/private/files/view.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/private/files/view.php') 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; -- cgit v1.2.3