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