Skip to content

Commit

Permalink
fix caching issue preventing files from being written directly to mou…
Browse files Browse the repository at this point in the history
…nt point
  • Loading branch information
summersab committed Feb 9, 2023
1 parent 145000e commit 33d6508
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/private/Files/AppData/AppData.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ public function __construct(IRootFolder $rootFolder,
$storage = new LocalRootStorage($arguments);
$mount = new MountPoint($storage, $folderName, $arguments);
\OC::$server->getMountManager()->addMount($mount);

return $rootFolder->get($folderName);
}
return $rootFolder;
});
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Files/Cache/LocalRootScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $loc

private function shouldScanPath(string $path): bool {
$path = trim($path, '/');
return $path === '' || strpos($path, 'appdata_') === 0 || strpos($path, '__groupfolders') === 0;
return $path === '' || strpos($path, 'appdata_') === 0 || strpos($path, '__groupfolders') === 0 || strpos($this->storage->getMountPoint(), '/appdata_') === 0;
}
}

0 comments on commit 33d6508

Please sign in to comment.