You can use the -d operator to test for a directory.  

print "Found directory!\n" if (-d "/path/to/directory");

(Just make sure you use the c:\\path\\to\\directory format on Windows.)

HTH.

-Dave

On Wednesday 21 November 2001 10:41 am, [EMAIL PROTECTED] wrote:
> what is the best way to check for the existence of a directory?
> (windows/Linux)


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to