Merge pull request #16570 from nextcloud/enh/supress_touch_error
Supress warnings touch can generate
This commit is contained in:
commit
fb78cd3ed8
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue