From 5928255463455b6875d9721c22e49be28e2d05ea Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 20 Aug 2023 10:38:17 -0700 Subject: [PATCH] fs: document nomedia exclusion Signed-off-by: Varun Patil --- lib/Db/FsManager.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Db/FsManager.php b/lib/Db/FsManager.php index ce51ff9c..4335228b 100644 --- a/lib/Db/FsManager.php +++ b/lib/Db/FsManager.php @@ -131,6 +131,16 @@ class FsManager $root->addMountPoints(); // Exclude .nomedia folders + // + // This is needed to be done despite the exlusion in the CTE to account + // for mount points inside folders with a .nomedia file. For example: + // /user/files/timeline-path/ + // => subfolder1 + // => photo1 + // => subfolder2 + // => .nomedia + // => external-mount <-- this is a separate topFolder in the CTE + // => photo2 <-- this should be excluded, but CTE cannot find this $root->excludePaths($this->getNoMediaFolders($userFolder, md5($etag))); } } catch (\OCP\Files\NotFoundException $e) {