net/ftp

J

Joe Gutierrez

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?
 
B

Ben Lovell

[Note: parts of this message were removed to make it a legal post.]

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?

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
 
G

Giampaolo Rodola'

[Note:  parts of this message were removed to make it a legal post.]

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?

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/
 
B

Ben Lovell

[Note: parts of this message were removed to make it a legal post.]

[Note: parts of this message were removed to make it a legal post.]

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/
Of course it does. I should have been clearer in my response :) Apart from
the obvious path argument, I'm not aware of any others ;)

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,470
Messages
2,571,809
Members
48,797
Latest member
PeterSimpson
Top