curl and directories
James Rea
jim at provue.com
Fri Jun 20 22:43:30 PDT 2008
> I'm using curl to retrieve directories on web servers. The list of
> the directory contents has several elements for each item in the
> list; read/write status, ownership, dates and the folder or file name
> itself.
>
> I've been unable to see a way to extract just the file name since the
> elements are separated by spaces rather than tabs. A file name with
> spaces eludes easy identification.
>
> It's not clear either on what's a file and what's a folder.
>
> Has anyone else dealt with these issues?
Is this on your server, or someone elses?
If someone else's, you are entirely at their mercy. The format has
nothing to do with curl, it is determined by the server software.
If it is your server, you might want to write your own procedures on the
server to return the directory information in an unambigous format.
Jim Rea
President, ProVUE Development
---------------------------------------------------------------------
--- Celebrating 30 years of software excellence (1978-2008) ---
---------------------------------------------------------------------
ProVUE Development (714) 841-7779
18685-A Main Street PMB356 http://www.provue.com/
Huntington Beach, CA 92648 Panorama: Turn information into knowledge
---------------------------------------------------------------------
More information about the Qna
mailing list