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:
parent
2e803dc3d3
commit
1cc8a2f5d2
|
@ -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 New Issue