Rockbox Technical Forums

Rockbox General => Rockbox General Discussion => Topic started by: grossaffe on June 23, 2008, 10:17:57 PM

Title: Scan-free folder
Post by: grossaffe on June 23, 2008, 10:17:57 PM
I wouldn't know how to search for this topic if it already does exist because any key words are very ambiguous.

so, down to business.  Is there anything I can do to prevent rockbox from picking up sound-files from certain folders and putting them in the database?  In my case, I have a sansa e200 as you all know, it has a built-in voice recorded.  The problem is that those voice-recordings are sound-files and rockbox picks up on them and assumes they're songs and loads them into the database to play with the rest of my music.  Is there a text file I can plant in the a folder or something that tells the database scanner not to look in this folder?
Title: Re: Scan-free folder
Post by: Llorean on June 23, 2008, 10:18:54 PM
Just put database.ignore files in any folders you don't want scanned (it'll prevent scanning of the folder, and all folders under it). There's already one in the .rockbox folder.
Title: Re: Scan-free folder
Post by: grossaffe on June 23, 2008, 10:20:47 PM
So it should just be basically an empty file named database.ignore?

edit: never mind, doesn't matter.  As you said, there's already one in the .rockbox folder, so i guess all I need to do is copy it over.  thanks for the help.
Title: Re: Scan-free folder
Post by: saanaito on June 24, 2008, 09:52:13 PM
And for future reference:
If there's a subfolder inside an ignored folder that you DO want scanned, simply put a file in the subfolder called database.unignore
Title: Re: Scan-free folder
Post by: GodEater on June 25, 2008, 03:03:26 AM
That got commited ?

I didn't think it had...


Apparently it did. My bad.
Title: Re: Scan-free folder
Post by: markun on June 26, 2008, 05:59:39 AM
LinusN had suggested to give them better names like "database.exclude" and "database.include" but I guess it's a bit late for that now.
Title: Re: Scan-free folder
Post by: GodEater on June 26, 2008, 06:07:38 AM
Perhaps this is a feature RockboxUtility could offer over and above it's current installation / upgrade method, which is essentially just unzipping a new build over the top of the old one.

If we introduce feature changes like a rename of those files from database.ignore/unignore to database.exclude/include then RBUtility could offer a post install script to run to change all existing instances on the DAP to the new name.

If we make the scripting feature of this dynamic enough, it might be a solution for things like when we break WPS syntax too. As I understand it we have a script which fixes the issues brought up by the recent %pb / conditional view ports changes too, so RBUtil could run this as part of the upgrade procedure to fix all the WPS it finds?

Anyone else think that this idea has merit ?
Title: Re: Scan-free folder
Post by: chipotle101202 on June 26, 2008, 06:18:22 PM
Is this how you prevent a folder from being used when you put your DAP on random by folder?
Title: Re: Scan-free folder
Post by: MarcGuay on June 26, 2008, 06:28:27 PM
No, you need to use the random_folder_advance_config plugin for that.  It's under Plugins -> Applications.  I added a brief description to the manual yesterday, it should show up in the next daily edition.
Title: Re: Scan-free folder
Post by: PaulJam on June 26, 2008, 06:33:40 PM
Is this how you prevent a folder from being used when you put your DAP on random by folder?

No, that is done by removing the directory from the list in the random_folder_advance_config plugin.
There are 3 ways to do this:
1 - Use the "Edit Folder List" function in the plugin.
2 - Export the list, edit the exported text file (.rockbox/folder_advance_list.txt) with a text editor and then import it again.
3 - set up a folder_advance_dir.txt file in the .rockbox directory (like described here: http://www.rockbox.org/tracker/task/7074 ) and generate the folder list again using the plugin.

(I personally prefer 3)
Title: Re: Scan-free folder
Post by: MarcGuay on June 26, 2008, 06:39:33 PM
I like the closing comment on that task.    :P
Title: Re: Scan-free folder
Post by: chipotle101202 on June 26, 2008, 06:52:18 PM
awesome ! Thanks.

EDIT: In regards to PaulJam's #3 favorite. You need to create a folder_advance_list.txt file to import, not a ...dir.txt