Skip to content

Commit

Permalink
SFTP-Storage: Correctly Sync mtime
Browse files Browse the repository at this point in the history
  • Loading branch information
msander authored Aug 18, 2020
1 parent 5ced155 commit 2e1fff3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/files_external/lib/Lib/Storage/SFTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,13 +406,10 @@ public function fopen($path, $mode) {
*/
public function touch($path, $mtime=null) {
try {
if (!is_null($mtime)) {
return false;
}
if (!$this->file_exists($path)) {
$this->getConnection()->put($this->absPath($path), '');
} else {
return false;
$this->getConnection()->touch($this->absPath($path), $mtime);
}
} catch (\Exception $e) {
return false;
Expand Down

0 comments on commit 2e1fff3

Please sign in to comment.