Merge pull request #16570 from nextcloud/enh/supress_touch_error

Supress warnings touch can generate
This commit is contained in:
Roeland Jago Douma 2019-07-29 10:39:46 +02:00 committed by GitHub
commit fb78cd3ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -202,9 +202,9 @@ class Local extends \OC\Files\Storage\Common {
return false;
}
if (!is_null($mtime)) {
$result = touch($this->getSourcePath($path), $mtime);
$result = @touch($this->getSourcePath($path), $mtime);
} else {
$result = touch($this->getSourcePath($path));
$result = @touch($this->getSourcePath($path));
}
if ($result) {
clearstatcache(true, $this->getSourcePath($path));