aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/LocalRootScanner.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/Cache/LocalRootScanner.php')
-rw-r--r--lib/private/Files/Cache/LocalRootScanner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/LocalRootScanner.php b/lib/private/Files/Cache/LocalRootScanner.php
index 0b6bc497ea3..df5ddd0075b 100644
--- a/lib/private/Files/Cache/LocalRootScanner.php
+++ b/lib/private/Files/Cache/LocalRootScanner.php
@@ -44,6 +44,6 @@ class LocalRootScanner extends Scanner {
private function shouldScanPath(string $path): bool {
$path = trim($path, '/');
- return $path === '' || strpos($path, 'appdata_') === 0 || strpos($path, '__groupfolders') === 0;
+ return $path === '' || str_starts_with($path, 'appdata_') || str_starts_with($path, '__groupfolders');
}
}