apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: trying to get full path of file using apr_stat, apr_file_info_get
Date Mon, 10 Sep 2001 14:56:55 GMT
From: "kevin seguin" <seguin@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.



Mime
View raw message