From 1cc8a2f5d251b5f2ab594f9c96eaff77ce6697f3 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 26 Jul 2019 17:26:59 +0200 Subject: [PATCH] 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 --- lib/private/Files/Storage/Local.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index e3e6ac783d..e9a9e8e988 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));