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

Similar Threads

FTP : Time problem (net/ftp) 0
Net::FTP vs ProFTPD 1.2.9 1
Please help with NET::SSH 3
ls in ftp fails 5
Net::FTP list empty 1
Net::FTP::Recursive hangs 3
Net::FTP hangs 7
Net::FTP puttextfile question 2

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
arinsharma
Top