apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCarthaigh <c...@stdlib.net>
Subject Re: Check existence of file or dir
Date Wed, 03 May 2006 11:03:24 GMT
On Wed, May 03, 2006 at 05:43:21PM +0700, Konstantin Sharenkov wrote:
> Is it possible in APR to check file existence without opening the file ?

apr_stat() does what you want :)

> also I interesting to check directory existence.

Directories are files too. But you can check finfo->filetype == APR_DIR.

-- 
Colm MacCárthaigh                        Public Key: colm+pgp@stdlib.net

Mime
View raw message