Posted by TCuda on July 29, 1999 at 21:33:08:
In Reply to: Checking Directory posted by Neil on July 29, 1999 at 21:25:47:
: I was wondering if anyone knew a way to check and
: see if a directory exists. I want to do this before
: I make my first node.
: Anyone have any hints?
While I was looking at the Dir.cpp that was included with the project, I realzed that if a not-valid directory is given in the constructor of the DirectoryReader the DirectoryReader will read files from the Current Working Directory. This makes looking for a bad directory name hard if you want to use only the directoryreader class functions.
What should we do? Use standard C Library functions to find if the directory name is valid?