fs: document nomedia exclusion

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/783/head
Varun Patil 2023-08-20 10:38:17 -07:00
parent 31014fc2a9
commit 5928255463
1 changed files with 10 additions and 0 deletions

View File

@ -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) {