List all web accessible resources in a Chrome Extension

I would like to list all the images I have in a specified folder inside of my chrome extension. However, I think I am fighting web technologies on this one. Is there any env in the chrome extension that executes javascript in a "server" context, as in, could read the files in it's neighboring folders?

Here's what my web accessible resources param looks like:

"web_accessible_resources": ["*.jpg","*.JPG", "*.png", "*.PNG"]

I have background script and content script both enabled.

I've tried running an ajax query against the dir to see if it will index but also no luck.


ANSWERS:


There seems to be no direct way.

As a workaround you can set up a native app. Get the resources and directories from the manifest file and if there are any wildcards, as in your example, search the directories for them using traditional system calls.

Here's a link to how you can set up the native app and communicate with it using your extension:



 MORE:


 ? Extract thumbnail from image without reading the whole thing?
 ? Can a Chrome App access Google APIs (like Drive) directly (ie. without a webview)?
 ? Access DOM of a web site via google packaged app
 ? App background script, accessing elements of opened window
 ? Can a chrome application launch local program?
 ? Can a chrome application launch local program?
 ? Can a chrome application launch local program?
 ? Using PPAPI to launch client applications e.g. Microsoft Word
 ? What is the alternatives for Java Applet to launch client programs using Chrome browsers?
 ? Launch Desktop Application Chrome