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.
In reply to RE: Don't Check for Directories
by tye
in thread Checking for Directories
by zdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |