Foo Ji-Haw wrote:
Dirk Bremer wrote:
What is the easiest method to detect whether or not a directory exists?
I will need to create the directory/subdirectory if it is not already
present. The file test -d does not seem to do the trick.
What's wrong with -d? It' is not a file test. It's a test if the path
points to a directory.
I think it's -e you need to use to test if a file or directory exists.
if (-e "c:/aaa/bbb") { blah }
Rod
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--
-------------------------------------------------------------------------------------------------
http://distributedcomputing.info - find out how to make your pc work for
the community
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs