summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-07-26 17:26:59 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-07-26 17:26:59 +0200
commit1cc8a2f5d251b5f2ab594f9c96eaff77ce6697f3 (patch)
tree5e952d7eb53043c3bbf6e8f205cb69e00aaf81ce /lib
parent2e803dc3d37f8f5eebe3d262bd6cc25fe97e73cd (diff)
downloadnextcloud-server-1cc8a2f5d251b5f2ab594f9c96eaff77ce6697f3.tar.gz
nextcloud-server-1cc8a2f5d251b5f2ab594f9c96eaff77ce6697f3.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/Local.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index e3e6ac783d9..e9a9e8e9885 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/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));