fs: document nomedia exclusion
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/783/head
parent
31014fc2a9
commit
5928255463
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue