Is this possible within an HTML5 Web page script (hereafter referred to as the App).
1. Be able to designated a local directory on my computer that would be a repository of files that I upload. This location would be stored on the client side (locally) within my App.
2. Files that I download from a server would be placed into this directory. These files would be images, videos, xml text documents, or smaller script files. As they are uploaded an entry would be made into a local client side DB that would store the title, file name, description and file type.
3. When the App first loads (or after changes to the contents of the local directory), it would go to this local directory and read the names of these files and compare them to the client side DB. These would be stored so that when the "Resources" button on the App is clicked, it lists out these files and give an "action" button that would allow me to view these files. So if it's a movie, it would start playing. If it is a picture it would display the image. If it is an xml file, it would display the contents according to pre-determined parameters.
So bottom line, I am wondering if via HTML5 I can read the contents of a directory, compare them to a local DB to get more details and then display then take action: If a movie, play it; an image, show it; an XML file, display it with appropriate formatting; a script, execute it.
The application I'm thinking of using this would be to upload files to your mobile phone in a designated directory. The local machine gives the option of picking one of these files to run. It would be a type of "modular" approach where each person's App would look a little different based on what he chooses to put into his local directory. For some people, they would put five movies, ten images and an xml file with the contents of a formatted article.
So, I'm wondering if this is possible and if so, can you point me in the direction of where to understand how to do this.