Ver código fonte

Prevent error from cache update on deleted files

tags/v7.0.0alpha2
Robin McCorkell 10 anos atrás
pai
commit
eeee9eacea
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5
    1
      lib/private/files/storage/local.php

+ 5
- 1
lib/private/files/storage/local.php Ver arquivo

@@ -305,7 +305,11 @@ if (\OC_Util::runningOnWindows()) {
* @return bool
*/
public function hasUpdated($path, $time) {
return $this->filemtime($path) > $time;
if ($this->file_exists($path)) {
return $this->filemtime($path) > $time;
} else {
return true;
}
}

/**

Carregando…
Cancelar
Salvar