fix: make psalm and rector happy

Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
This commit is contained in:
Hendrik Leidinger 2026-03-26 10:18:49 -07:00 committed by Louis
parent 88d3e0583a
commit 8328efa062

View file

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