Date: Tue, 18 Dec 2012 16:26:10 -0800 From: Gary Kline <kline@thought.org> To: FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG> Subject: which C function is best to check for directory EXISTANCE? Message-ID: <20121219002610.GA12470@ethic.thought.org>
next in thread | raw e-mail | index | archive | help
which C function is best to check for the existence of a *directory*? say that I am want to make postitve that "/tmp/foo/" exists. ALso: which will make sure that the directory AND ffile "tmp/foo/filename12345" exists and that I have read access to it? in other words, can playing around with access() and stat() be best? is there any new dirstat("PATh") that would work? just want to see which way is best? dank mucho, y'all! gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Twenty-six years of service to the Unix community.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121219002610.GA12470>