2014-10-27, 19:20
(2014-10-27, 18:58)phate89 Wrote: You'd like a function that works exactly like os.walk?
Well maybe not exactly like it
Some sort of path walking - a recursive function would probably work very well - is needed, though. Particularly for playlists included with the skin, which varying on skin can be in special://skin/extras, special://skin/playlists or a subdirectory thereof. Though one user earlier in the thread was keeping their own playlists in subdirectories, so it needs to walk the regular playlist path as well.
One side note, the function can return the users playlists via the special:// protocol no problem, but as the idea is that menus have the potential to be shared between skins, skin-provided playlists can't (otherwise the links would break as soon as the skin was changed). Need any help, let me know (via PM may be appropriate, as I suspect such details as this won't interest the vast majority of skin-development forum goers!)