Help on include/exclude filters for file search

Hi all,

I want to collect approaches for scanning all userfiles - but giving the user flexibility to decide on what. In my case, audio files of a certain mimetype are relevant.

I really appreciate your help and opinions on this

Include Selection:

  1. default = all. All files of / will be scanned if the user does not do anyting
    searchByMime() on userfolder

  2. Usersetting: the user can select one folder. All files will be scanned recursively by mimetype. as “Music” app
    searchByMime() on selected folder

  3. Hidden file: putting a file like e.g. “.mediascan” in one or many folders will get them scanned. compared to 2.), this gives the flexibility for more selections
    search(positivefile) => getByID() => loop all subnodes recursively

  4. Tags / Comments: similar to 3.), but starting off with comments or tags. but here is one issue that one of them is an enterprise feature in OC so the app would not be compatible

  • default - all
  • User settings
  • Hidden files
  • Tags/Comments

0 voters

Exclude Selection:

  1. Hidden file per folder: putting a file like “.noMedia” in a folder will exclude it from scanning. as “Gallery” app
    searchbyMime() on userfolder => getParent()->nodeExists()

  2. Hidden file per tree: putting a file like “.noMedia” in a folder will exclude all recursive files from scanning
    searchbyMime() on userfolder => getParent()->nodeExists() => loop all subnodes recursively

  3. Tags / Comments: similar to 3.), but starting off with comments or tags. but here is one issue that one of them is an enterprise feature in OC so the app would not be compatible

  • User settings
  • Hidden files
  • Tags/Comments

0 voters

does anyone have different suggestions?
easiest are 1+1; most comfortable 4+3