Net/ftp

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
Web D. - Inc21
[email protected]

On Fri, Apr 24, 2009 at 7:14 PM, Joe G. [email protected]
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

On 24 Apr, 21:45, Ben L. [email protected] wrote:

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

On Sat, Apr 25, 2009 at 8:20 PM, Giampaolo Rodola’ [email protected]
wrote:

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/

Of course it does. I should have been clearer in my response :slight_smile: Apart
from
the obvious path argument, I’m not aware of any others :wink:

Ben