Only attempt to move to trash if a file is not in appdata

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-11-13 08:30:35 +01:00 committed by Morris Jobke
parent 86da5013c8
commit 7d786a4e37
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class Storage extends Wrapper {
protected function shouldMoveToTrash($path) {
$normalized = Filesystem::normalizePath($this->mountPoint . '/' . $path);
$parts = explode('/', $normalized);
if (count($parts) < 4) {
if (count($parts) < 4 || strpos($normalized, '/appdata_') === 0) {
return false;
}