You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "William A. Rowe, Jr." <wr...@rowe-clan.net> on 2001/09/10 16:56:55 UTC

Re: trying to get full path of file using apr_stat, apr_file_info_get

From: "kevin seguin" <se...@motive.com>
Sent: Friday, June 22, 2001 10:23 AM


> in the following code snippet, i'm trying to get the full path for a
> given file name (in argv[1]) using apr_file_get_info() and apr_stat(). 
> in looking at apr_file_info.h, it appears that apr_finfo_t.fname should
> contain the full path for the file after calling these functions, but it
> does not.  am i missing something, or is this just not working (i've
> observed this behavior on both windows and redhat linux 7)?

We don't fill out a full apr_finfo_t.fname because the resulting memory 
consumption would be unacceptable, and it adds cpu clicks when many
applications _don't_ need the full path of the files when they are 
apr_dir_read()ing.