Merge 6ebb83eee9
into 188bc07869
This commit is contained in:
commit
83048347b7
|
@ -407,13 +407,10 @@ class SFTP extends \OC\Files\Storage\Common {
|
||||||
*/
|
*/
|
||||||
public function touch($path, $mtime = null) {
|
public function touch($path, $mtime = null) {
|
||||||
try {
|
try {
|
||||||
if (!is_null($mtime)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!$this->file_exists($path)) {
|
if (!$this->file_exists($path)) {
|
||||||
$this->getConnection()->put($this->absPath($path), '');
|
$this->getConnection()->put($this->absPath($path), '');
|
||||||
} else {
|
} else {
|
||||||
return false;
|
$this->getConnection()->touch($this->absPath($path), $mtime);
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue