mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: make psalm and rector happy
Signed-off-by: Hendrik Leidinger <hendrik.leidinger@nextcloud.com>
This commit is contained in:
parent
88d3e0583a
commit
8328efa062
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue