View Full Version : is the dir there ?
Unregistered
03-22-2002, 11:02 PM
from my c++ console prog, i need to find out if a directory exists.
in windows, all(even empty ones) have \folder\nul
does unix have something similar ?
rohit79
03-23-2002, 06:39 AM
doing the easy way again
you will have to mount your windows partition first into say something like /mnt/windows
then system(find /mnt/windows -type d -name "yourdirectoryname" -print)
Unregistered
03-23-2002, 05:37 PM
--> "/directory/foobar", "w+"
what's the "w+" ?
basically i'm in my home dir.
in my home dir there is a dir called saves,
i need to see it if exists.
(It's done for my windows section, but it needs to work on linux)
Unregistered
03-23-2002, 06:47 PM
you must be in Canada ;)
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.