Re: How to verify whether a directory exists

2003-12-08 Thread Jeff Westman
"B. Fongo" <[EMAIL PROTECTED]> wrote: > I tried several alternatives to solve the problem, but failed. In most > cases, the script couldn't create a directory if there is a text file > with the same name. Rob's suggestion works better; except that it > overrides the directory without warning -

Re: How to verify whether a directory exists

2003-12-08 Thread B. Fongo
I tried several alternatives to solve the problem, but failed. In most cases, the script couldn't create a directory if there is a text file with the same name. Rob's suggestion works better; except that it overrides the directory without warning - if it already existing. But it remians some ho

Re: How to verify whether a directory exists

2003-12-07 Thread Rob Dixon
Wiggins D'Anconia wrote: > > B. Fongo wrote: > > I want to use mkdir(blah blah, o777), but want to first find out > > whether the directory "blah blah" exists. > > I'm not if the -e option will bw right here. Let's say: > > > >unless (-e blah_blah) mkdir(blah_blah, 0777); > > # Is this oka

Re: How to verify whether a directory exists

2003-12-07 Thread B. Fongo
Sometimes I don't answers to my questions; so I thought it might help - posting to both list. Next time, I'll remember to post to one list only. Thanks a lot. Wiggins d'Anconia wrote: Please don't cross post, if your question is CGI based then use that list, otherwise use the other... B. Fongo

Re: How to verify whether a directory exists

2003-12-06 Thread drieux
On Dec 6, 2003, at 5:27 PM, B. Fongo wrote: I want to use mkdir(blah blah, o777), but want to first find out whether the directory "blah blah" exists. I'm not if the -e option will bw right here. Let's say: unless (-e blah_blah) mkdir(blah_blah, 0777); # Is this okay? May I recommend Fil

Re: How to verify whether a directory exists

2003-12-06 Thread Wiggins d'Anconia
Please don't cross post, if your question is CGI based then use that list, otherwise use the other... B. Fongo wrote: I want to use mkdir(blah blah, o777), but want to first find out whether the directory "blah blah" exists. I'm not if the -e option will bw right here. Let's say: unless

How to verify whether a directory exists

2003-12-06 Thread B. Fongo
I want to use mkdir(blah blah, o777), but want to first find out whether the directory "blah blah" exists. I'm not if the -e option will bw right here. Let's say: unless (-e blah_blah) mkdir(blah_blah, 0777); # Is this okay? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm