locked
Loading a file by absolute path

    Question

  • My application lets the user pick some files in the music library, and I store their 'path' property in indexedDB.

    Later on, I want to load those files on demand to play them. I can't figure out the best way (if any) to load a file via the absolute path that I have, ex: "c:\someFolderIncludedInMusicLibrary\artist\album\title.mp3".

    Is this possible? If not, what's the recommended way to store persistent references to files in a library, and be able to load them after an app restart?

    I can load the file fine if I use the relative path from the musicLibrary, but I obviously can't guess what the music library path is from an absolute path to remove it.

    Any help appreciated!

    Monday, July 23, 2012 7:46 PM

Answers

All replies