[Xitami] Emulating Apache directories
Francis Turner
xitami@lists.xitami.org
Mon, 10 Dec 2001 13:17:33 +0100
Ewen McNeill wrote:
>
>You are right that smthttpl.c:http_list_directory() is what is creating
>the directory (as an XML tree). One of the things that it should also
>add to the XML is the path to the actual directory on disk, since it
>obviously needs to know this while it is preparing the list of files,
>and it would be useful to the GSL script outputting the directory. The
>directory path is, I think, in p_http-> file_name, so adding an
>attribute with that value into the top level of the XML would be useful,
>called perhaps "path_on_disk".
>
I suggest "phyical_path". Also note that due to some cunning code
reusing p_http->file_name as a place to store the temporary outfile name
you will have to do this before you create the tempfile at line 2198!
I will build a unix(linux actually) version to verify that it works over
the next couple of days - but I don't yet a Win32 compiler so I can't do
win32.
Francis
--
"Education is when you read the fine print;
experience is what you get when you don't." Pete Seeger