Support and General Use > Plugins/Viewers

disktidy.config entry to delete ##MUSIC# folder (Clip+)?

(1/2) > >>

grums:
The Clip+ adds folders when using the OF, they're empty and take up space in the Files browser when RB is booted afterwards.

I've tried to configure Disktidy to remove those folders - disktidy.config:
< Other >: no
    AUDIBLE/: no
    AUDIOBOOKS/: no
    PODCASTS/: no
    RECORD/: no
    MUSIC/: no
    *MUSIC#/: no
    *PORT#/: no

The last 2 lines don't match the ##MUSIC# & ##PORT# folders, and of cause I cant specify:
    ##MUSIC#/: no
    ##PORT#/: no
- because '#' at the start is a comment?!

What's the trick? (I know I can delete them manually, but...)

Ole

fml2:
How can you tell they don't match? Did you mark those folders for deletion? You can try to create a dummy folder without # in the name and delete it via the plugin. Then you can see if it's really because of the 'strange' folder names.

grums:
I have tried that:

The plugin works OK on folders and files - as long as the don't have # as the first character of the name.
If I put a filename like #XYZ in the configuration file it will disappear (parsed away because it's considered to be a comment).
And I've now found out (plugin doc!) that * only matches in the end of a name.

I'm struggling to have a development system up and running - and hoping that a/the Disktidy developer might see this?

Ole

Post Merge: February 17, 2011, 09:37:41 AMSorry, I posted the last instead of Preview...

A possible modification could be to define an escape character which will be parsed in as part of the name (eg. \##MUSIC#/) and let the plugin throw it away.
That would be quite simple (I guess).

The character chosen should be one that is not parsed away and not allowed in file/foldernames in Rockbox - any suggestions?

Ole

Chronon:
Your use of backslash seems natural.  It should be free since it can't appear as a part of a path in Rockbox.

[Saint]:

--- Quote from: grums on February 17, 2011, 09:29:04 AM ---And I've now found out (plugin doc!) that * only matches in the end of a name.

--- End quote ---

Where did you read this?

It should be changed as this has not the case since some time now.

Example:

*.<ext>

and

start_of_filename*.<ext>

or

*end_of_filename.<ext>

Will all work correctly.


For you:


--- Code: ---< Other >: no
    *MUSIC#/: no
    *PORT#/: no

--- End code ---

Should do what you want it to do.



[St.]

Navigation

[0] Message Index

[#] Next page

Go to full version