Reset changes on 3rdparty submodule

This commit is contained in:
Jesus Macias 2014-09-03 18:20:09 +02:00
parent 7d4317e9fb
commit 883649b69c
1 changed files with 7 additions and 1 deletions

View File

@ -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;