[debug]: dont move .lck files to trash

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2020-05-01 18:51:18 +02:00
parent 91487d8739
commit 44bbc3c5b0
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,10 @@ class Storage extends Wrapper {
* @return bool
*/
protected function shouldMoveToTrash($path) {
if (substr($path, -4) === '.lck') {
return false;
}
$normalized = Filesystem::normalizePath($this->mountPoint . '/' . $path);
$parts = explode('/', $normalized);
if (count($parts) < 4) {