diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php index 62a4a5174ee..4ac6b28b9fc 100644 --- a/apps/files_external/lib/Lib/Storage/SFTP.php +++ b/apps/files_external/lib/Lib/Storage/SFTP.php @@ -357,11 +357,11 @@ class SFTP extends Common { } public function touch(string $path, ?int $mtime = null): bool { - + $result = $this->getConnection()->touch($this->absPath($path), $mtime, $mtime); if ($result) { - $this->getConnection()->clearStatCache($this->absPath($path)); + $this->getConnection()->clearStatCache(); if (!is_null($mtime)) { $this->knownMTimes->set($path, $mtime); }