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>
This commit is contained in:
Roeland Jago Douma 2019-07-26 17:26:59 +02:00
parent 2e803dc3d3
commit 1cc8a2f5d2
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 2 deletions

View File

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