Jump to content

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


zq29

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.
Link to comment
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
Link to comment
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...
Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.