curl to get FTP directory listing?
curl to get FTP directory listing?
- Subject: curl to get FTP directory listing?
- From: Eric Geoffroy <email@hidden>
- Date: Wed, 19 Apr 2006 11:25:39 -0700
I can upload and download with curl, but getting a simple file
listing is giving me a bad time. I'm currently scripting the Finder
to check for old files on many different FTP directories. It returns
modification dates then I do some math in AS and determine whether
the directory has been inactive for awhile. This is slow. I thought
curl might be able to do this faster.
According to the man page,
" When used on a FTP or FILE file, curl displays the file size and
last modification time only.
The -X flag can be used to send another raw FTP command, but defaults
to LIST.
I've been using this:
curl -v ftp://ctalk062:email@hidden -I
It just opens and closes a connection. I'm using the -v option so I
can debug.
-Eric
***********************************************************************
This email may contain confidential material.
If you were not an intended recipient,
please notify the sender and delete all copies.
We may monitor email to and from our network.
***********************************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden