Skip to content

Commit 2e1fff3

Browse files
authored
SFTP-Storage: Correctly Sync mtime
1 parent 5ced155 commit 2e1fff3

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • apps/files_external/lib/Lib/Storage

apps/files_external/lib/Lib/Storage/SFTP.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,10 @@ public function fopen($path, $mode) {
406406
*/
407407
public function touch($path, $mtime=null) {
408408
try {
409-
if (!is_null($mtime)) {
410-
return false;
411-
}
412409
if (!$this->file_exists($path)) {
413410
$this->getConnection()->put($this->absPath($path), '');
414411
} else {
415-
return false;
412+
$this->getConnection()->touch($this->absPath($path), $mtime);
416413
}
417414
} catch (\Exception $e) {
418415
return false;

0 commit comments

Comments
 (0)