oops! mkdir is the command i was thinking of not md. sorry for the confusion (replace md with mkdir in the code examples and you should be good to go). ----- Original Message ----- From: "Zac Propersi" <rubix27@xxxxxxxxx> To: <gameprogrammer@xxxxxxxxxxxxx> Sent: Saturday, July 10, 2004 11:14 AM Subject: [gameprogrammer] Re: Linux equivalent of CreateDirectory > I am not sure if this is double coverage, but I have > never used md in Linux unless it is just a fancy alias > to mkdir. As far as having a function call to make a > directory you can just use the mkdir command which > takes in the parameters that you require. > Unfortunately, you may have to create all non-existing > parent directories first ( There is an error code for > a missing parent directory ). If you want more > information on the call just type in you command > prompt "man 2 mkdir". > > Another way to solve this problem is to call a > commandline version of mkdir. You can either do this > through a shell script or an exec-like interface, it > all comes out the same for your purposes. The nice > thing about the command line is that you have the -p > option which automatically generates parent folders > for you. If you were in an empty directory and typed > "mkdir -p foo/bar/baz/nuts/", it would create all of > the directories for you. The nice thing is it doesn't > barf if a couple of the directories already exist > either. To learn more about the commandline version > of mkdir type into your command prompt "man 1 mkdir". > > You still have to do a bunch of directory tweaking if > you are running from a different directory than the > parent you want to use. Hope this is helpful :-) > > ~Zac > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > > > --------------------- > To unsubscribe go to http://gameprogrammer.com/mailinglist.html > > --------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html