DEV Community

loading...

Discussion on: Shuffle Fail: Fixing my car stereo with code!

Collapse
turnerj profile image
James Turner Author

Nope, I didn't consider doing that though it would be a lot more efficient! My method does take a several minutes to run currently where really I am only wanting to shuffle my music and sync any new music to it.

I haven't tried to play with a file system at a lower level like that before though now that you've brought it up, the thought does intrigue me and maybe I'll do a followup post if I do it. :)

Collapse
phlash909 profile image
Phil Ashby

Actually it occurs to me that plain old renaming should do the trick - move (aka rename) to a temporary folder, then move back in desired order - this re-writes the directory, no special knowledge required :)

Forem Open with the Forem app