Skip to content

Commit 85605b0

Browse files
committed
fixup! Ignore roots of groupfolders from autotagging
1 parent afad80b commit 85605b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Operation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ public function validateOperation($name, array $checks, $operation) {
9999
}
100100

101101
public function isTaggingPath(IStorage $storage, string $file): bool {
102+
if (substr_count($file, '/') === 0) {
103+
return false;
104+
}
102105
if ($storage->instanceOfStorage(IHomeStorage::class)) {
103-
if (substr_count($file, '/') === 0) {
104-
return false;
105-
}
106106
list($folder) = explode('/', $file, 2);
107107
return $folder === 'files';
108108
} else {

0 commit comments

Comments
 (0)