Jump to content

Archived

This topic is now archived and is closed to further replies.

Kris

Does JavaScript have a function similar to PHPs glob() ?

Recommended Posts

Its all in the title ^^

I want to be able to create an array of the contents of a defined local directory - is this possible with JavaScript, and is there a function that does it?

Thanks very much.

Share this post


Link to post
Share on other sites
Not likely. I'd suspect that this might well be outside the security 'sandbox' that separates browser functions and the client O/S.

hmmm ... http://www.zzee.com/ahl.inf/Javascript-directory-listing.html

Share this post


Link to post
Share on other sites
Bugger. I thought this might be the case as it would be open for some abuse.

It's not even for an internet application either which is the annoying thing, more of an intranet application. Looks like I might have to learn some Java or something...

Share this post


Link to post
Share on other sites
If you have the correct versions of everything (or the insecure set-up), then http://www.winguides.com/scripting/ might be a usable solution for you.

Share this post


Link to post
Share on other sites
[quote author=AndyB link=topic=102431.msg406423#msg406423 date=1154348956]
If you have the correct versions of everything (or the insecure set-up), then http://www.winguides.com/scripting/ might be a usable solution for you.
[/quote]Thanks AndyB, I'll look into that.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.