Skip to content
Snippets Groups Projects
Commit 0597c522 authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #8039 from owncloud/chunking-removeexpireinhaskey

Do not expire chunks while checking for their existence
parents 09ac61f5 ab56f694
No related branches found
No related tags found
No related merge requests found
...@@ -84,11 +84,6 @@ class File { ...@@ -84,11 +84,6 @@ class File {
public function hasKey($key) { public function hasKey($key) {
$storage = $this->getStorage(); $storage = $this->getStorage();
if ($storage && $storage->is_file($key)) { if ($storage && $storage->is_file($key)) {
$mtime = $storage->filemtime($key);
if ($mtime < time()) {
$storage->unlink($key);
return false;
}
return true; return true;
} }
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment