dont stop expiring versions if we cant check if the source file still exists
instead continue assuming it still exists Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
137636b651
commit
b2fb4d898a
|
@ -53,6 +53,7 @@ use OCA\Files_Versions\Command\Expire;
|
|||
use OCA\Files_Versions\Events\CreateVersionEvent;
|
||||
use OCA\Files_Versions\Versions\IVersionManager;
|
||||
use OCP\Files\NotFoundException;
|
||||
use OCP\Files\StorageNotAvailableException;
|
||||
use OCP\IUser;
|
||||
use OCP\Lock\ILockingProvider;
|
||||
use OCP\User;
|
||||
|
@ -724,9 +725,15 @@ class Storage {
|
|||
|
||||
\OC_Util::setupFS($uid);
|
||||
|
||||
try {
|
||||
if (!Filesystem::file_exists($filename)) {
|
||||
return false;
|
||||
}
|
||||
} catch (StorageNotAvailableException $e) {
|
||||
// if we can't check that the file hasn't been deleted we can only assume that it hasn't
|
||||
// note that this `StorageNotAvailableException` is about the file the versions originate from,
|
||||
// not the storage that the versions are stored on
|
||||
}
|
||||
|
||||
if (empty($filename)) {
|
||||
// file maybe renamed or deleted
|
||||
|
|
Loading…
Reference in New Issue