curl for FTP....
curl for FTP....
- Subject: curl for FTP....
- From: David Crowe <email@hidden>
- Date: Mon, 27 Nov 2006 18:00:00 -0700
I did eventually track down the secret for getting modification date
(and size for files). It appears to be the "-I" option, which only
works for a single file.
For example on what I'm assuming is an OSX machine:
% url -I ftp.apple.com/filemaker/distribution.txt
Last-Modified: Fri, 21 Feb 2003 21:04:48 GMT
Content-Length: 44
Accept-ranges: bytes
%
And from the manufacturer of a Windows FTP
% curl -I ftp.ftpx.com/pub/ftpx/testfile.dat
Last-Modified: Thu, 13 Jan 2005 15:43:55 GMT
Content-Length: 16777216
Accept-ranges: bytes
%
So this seems to do the trick, although I haven't found out how to
use curl to determine the operating system so I can verify that the
same format is returned for different OSs.
- David Crowe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden