From: Giampaolo Rodola' Date: 2009-04-26T04:20:11+09:00 Subject: Re: net/ftp On 24 Apr, 21:45, Ben Lovell wrote: > [Note:  parts of this message were removed to make it a legal post.] > > On Fri, Apr 24, 2009 at 7:14 PM, Joe Gutierrez wrote: > > There's a method in Ruby's net/ftp library called list/ls. Does anyone have > > a list (or can someone point me to a place that has a list) of all possible > > arguments that you can pass to ls? > > -- > > Joseph Gutierrez > > You can pass anything you want as it isn't checked. I don't think the FTP > protocol actually specifies any arguments for LIST/LS. If you're asking > which arguments are going to actually produce a meaningful result, I'm not > sure where to point you. > > Regards, > Ben FTP's LIST, NLST, MLSD and MLST commands accept an argument which represents the *path*. If you send something like "LIST foo" the content of the directory "foo" will be returned. --- Giampaolo http://code.google.com/p/pyftpdlib/