Supress warnings touch can generate

We already catch the result value. Having the warning being logged
explicitly doesn't help and polutes the log.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/16570/head
Roeland Jago Douma 6 years ago
parent 2e803dc3d3
commit 1cc8a2f5d2
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 4
      lib/private/Files/Storage/Local.php

@ -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…
Cancel
Save