Method: Ftpd::CmdList#cmd_list
- Defined in:
- lib/ftpd/cmd_list.rb
#cmd_list(argument) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ftpd/cmd_list.rb', line 9 def cmd_list(argument) close_data_server_socket_when_done do ensure_logged_in ensure_file_system_supports :dir ensure_file_system_supports :file_info path = list_path(argument) path = File.(path, name_prefix) transmit_file(StringIO.new(list(path)), 'A') end end |