how to test if a directory exist? 
Author Message
 how to test if a directory exist?

if ( -d /etc ) {
        do_something();

Quote:
}

Christoph

--
-- Christoph Schmitz <cschmitz(at)stud.informatik.uni-trier.de> --
The very ink with which all history is written is merely fluid prejudice.
                -- Mark Twain



Sat, 27 Oct 2001 03:00:00 GMT  
 how to test if a directory exist?

Quote:
> if ( -d /etc ) {
> do_something();
> }

do_something() if -d '/etc' ;

:-)

--
Stephen Warren, Snr Systems Engineer, Technology House, San Francisco


              MIME, S/MIME and HTML mail are acceptable



Sat, 27 Oct 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. EXISTS?: Perl Script to synch a local directory with a ftp servers directory

2. renaming filenames when they exists in destination directory

3. file or directory exists question...

4. newbie directory exists? question

5. Check if directory exists.

6. HELP:Directory or File exists??

7. check to see if directory exists

8. Check file exist in the client directory

9. net::telnet difficulty accessing an existing directory...

10. How do I create a directory only if it doesn't exists

11. does this directory exist

12. File parseing and testing for existing data

 

 
Powered by phpBB® Forum Software