This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Directory listing

Old posts that have not been replied to for several years.
Locked
User avatar
MD87
Voice
Posts: 23
Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:

Directory listing

Post by MD87 »

Hi, I'm working on a script similar to stormbot (i.e. it's a 'general purpose' script), but the filesize is getting stupidly large considering most updates are bug fixes correcting one line of code, so I've decided to make it modular - the only problem is how to detect which modules have been downloaded.

Basically, I want the script to search the directory for *.MDs, and add the file to a list, I'm not sure how to do this though - there's a command in the files module for directory listings iirc, but that means forcing users to load that. I could also do exec ls *.MDs or whatever, but that's making it *nix specific.

Any suggestions?
User avatar
MD87
Voice
Posts: 23
Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:

Post by MD87 »

hehe, found it - pressed back by mistake and noticed I'd searched for "directory litsing" (and getting 0 results).

If anyone else is looking for it and is as bad a typer as me, it's the TCL command 'glob' :)
Locked