in reply to Don't Check for Directories
in thread Checking for Directories
Ah, but the sticky bit there is that you want to ignore a failure due to "directory already exists" and not ignore any other reasons for failure, including "file already exists". Before Errno.pm, this was tricky. Now it isn't so bad except that "file already exists" and "directory already exists" put the same value in $!.
So I think the easiest robust solution is still to only create the directory if it doesn't already exists.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Don't Check for Directories
by chip (Curate) on Jul 29, 2000 at 01:37 UTC | |
by tye (Sage) on Jul 29, 2000 at 07:07 UTC | |
by kirbyk (Friar) on Jul 29, 2000 at 04:35 UTC | |
by takshaka (Friar) on Jul 29, 2000 at 09:05 UTC |