Merge pull request #4243 from owncloud/no_empty_versions
don't create empty versions
This commit is contained in:
commit
c2f40d2495
|
@ -101,8 +101,11 @@ class Storage {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// we should have a source file to work with
|
// we should have a source file to work with, and the file shouldn't
|
||||||
if (!$files_view->file_exists($filename)) {
|
// be empty
|
||||||
|
$fileExists = $files_view->file_exists($filename);
|
||||||
|
$fileSize = $files_view->filesize($filename);
|
||||||
|
if ($fileExists === false || $fileSize === 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue