>> On Tue, 18 Dec 2012 16:26:10 -0800, >> Gary Kline <kl...@thought.org> said:
G> which C function is best to check for the existence of a *directory*? G> say that I am want to make postitve that "/tmp/foo/" exists. ALso: G> which will make sure that the directory AND file G> "tmp/foo/filename12345" exists and that I have read access to it? I'd just call open() with O_RDONLY and if it fails, check errno for EACCESS (you don't have permission) or ENOENT (doesn't exist). -- Karl Vogel I don't speak for the USAF or my company USELESS PHRASES WHEN SPEAKING TO A COP #9: "You're not gonna check the trunk, are you?" _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"