We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ced155 commit 2e1fff3Copy full SHA for 2e1fff3
1 file changed
apps/files_external/lib/Lib/Storage/SFTP.php
@@ -406,13 +406,10 @@ public function fopen($path, $mode) {
406
*/
407
public function touch($path, $mtime=null) {
408
try {
409
- if (!is_null($mtime)) {
410
- return false;
411
- }
412
if (!$this->file_exists($path)) {
413
$this->getConnection()->put($this->absPath($path), '');
414
} else {
415
+ $this->getConnection()->touch($this->absPath($path), $mtime);
416
}
417
} catch (\Exception $e) {
418
return false;
0 commit comments