prevent recursion when moving a file to the trashbin
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
f0c85a0f5f
commit
0d41138c6e
|
@ -99,7 +99,10 @@ class TrashManager implements ITrashManager {
|
|||
}
|
||||
try {
|
||||
$backend = $this->getBackendForStorage($storage);
|
||||
return $backend->moveToTrash($storage, $internalPath);
|
||||
$this->trashPaused = true;
|
||||
$result = $backend->moveToTrash($storage, $internalPath);
|
||||
$this->trashPaused = false;
|
||||
return $result;
|
||||
} catch (BackendNotFoundException $e) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue