mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 01:50:33 -04:00
Merge pull request #47974 from nextcloud/backport/47968/stable28
This commit is contained in:
commit
a8522a7d48
1 changed files with 7 additions and 3 deletions
|
|
@ -471,10 +471,14 @@ class SFTP extends Common {
|
|||
try {
|
||||
$stat = $this->getConnection()->stat($this->absPath($path));
|
||||
|
||||
$mtime = $stat ? (int)$stat['mtime'] : -1;
|
||||
$size = $stat ? (int)$stat['size'] : 0;
|
||||
$mtime = isset($stat['mtime']) ? (int)$stat['mtime'] : -1;
|
||||
$size = isset($stat['size']) ? (int)$stat['size'] : 0;
|
||||
|
||||
return ['mtime' => $mtime, 'size' => $size, 'ctime' => -1];
|
||||
return [
|
||||
'mtime' => $mtime,
|
||||
'size' => $size,
|
||||
'ctime' => -1
|
||||
];
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue