• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
curl ... file listings...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

curl ... file listings...


  • Subject: curl ... file listings...
  • From: David Crowe <email@hidden>
  • Date: Tue, 25 Oct 2005 09:00:12 +0800

There are some proponents of 'curl' to get URLs on this list. This seems like a great idea in combination with AppleScript, but I don't see how to get good file listings.

The problem is that curl with an FTP URL just provides the directory listing from the server which is not standard in format, e.g.:


curl ftp://10.10.243.201
09-30-05  01:41PM       <DIR>          FYA (TSG Only)
09-28-05  01:49PM       <DIR>          FYI (TSG Only)
10-17-05  11:12AM       <DIR>          Monthly_Meetings_Current


This will vary from site to site, depending on whether it's Unix, Windows or whatever. You can get a listing of just names, e.g.:


curl -l ftp://10.10.243.201
FYA (TSG Only)
FYI (TSG Only)
Monthly_Meetings_Current



But what if you want to get the dates and the type of the files (esp. directory versus file)? Is there any trick to this apart from some ad-hoc parsing routine.

I did find a C program, ftpparse (http://cr.yp.to/ftpparse.html), but I was hoping for something that would be a bit easier.

- 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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: curl ... file listings...
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: Just returning Filename... not whole path
  • Next by Date: Re: curl ... file listings...
  • Previous by thread: Re: Maybe OT: getting general information of a pdf file (demski)
  • Next by thread: Re: curl ... file listings...
  • Index(es):
    • Date
    • Thread