Fix warnings when trying to get mtime of non existing files
This commit is contained in:
parent
14f96f86e7
commit
6bc8305edd
1 changed files with 3 additions and 3 deletions
|
@ -157,7 +157,7 @@ class Local extends \OC\Files\Storage\Common {
|
|||
|
||||
public function filemtime($path) {
|
||||
clearstatcache($this->getSourcePath($path));
|
||||
return filemtime($this->getSourcePath($path));
|
||||
return $this->file_exists($path) ? filemtime($this->getSourcePath($path)) : false;
|
||||
}
|
||||
|
||||
public function touch($path, $mtime = null) {
|
||||
|
|
Loading…
Reference in a new issue