In this case I think you drop into shell `mkdir -p $fullpath`;
# And check for errors!!! - Roger - ----- Original Message ----- From: "Rene Verharen" <[EMAIL PROTECTED]> To: "Beginners-CGI List" <[EMAIL PROTECTED]> Sent: Saturday, January 19, 2002 5:01 PM Subject: mkdir in cgi-script > Hi, > > Can someone please point me in the right direction ? > > In a script I'm trying to write I need to create a new directory. This new > directory looks something like /directory/somedir/someotherdir/yetanotherdir. > > What I do now is : > > mkdir "$homeDir/directory", 0755"; > mkdir "$homeDir/directory/somedir", 0755"; > mkdir "$homeDir/directory/somedir/someotherdir", 0755"; > mkdir "$homeDir/directory/somedir/someotherdir/yetanotherdir", 0755"; > > Although this works I think I'm using to much code. Is there a more > efficient way to do this ? > > > > Kind regards, > > > > Rene Verharen > > > Please DO NOT reply to me personally. I'll get my copy from the list. > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]