Skip to content

Commit

Permalink
SFTP-Storage: Correctly Sync mtime
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Sander <[email protected]>
  • Loading branch information
msander committed Aug 24, 2020
1 parent 5ced155 commit 6ebb83e
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 6ebb83e

Please sign in to comment.