Merge pull request #16570 from nextcloud/enh/supress_touch_error
Supress warnings touch can generate
This commit is contained in:
commit
fb78cd3ed8
|
@ -202,9 +202,9 @@ class Local extends \OC\Files\Storage\Common {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!is_null($mtime)) {
|
if (!is_null($mtime)) {
|
||||||
$result = touch($this->getSourcePath($path), $mtime);
|
$result = @touch($this->getSourcePath($path), $mtime);
|
||||||
} else {
|
} else {
|
||||||
$result = touch($this->getSourcePath($path));
|
$result = @touch($this->getSourcePath($path));
|
||||||
}
|
}
|
||||||
if ($result) {
|
if ($result) {
|
||||||
clearstatcache(true, $this->getSourcePath($path));
|
clearstatcache(true, $this->getSourcePath($path));
|
||||||
|
|
Loading…
Reference in New Issue