Module: Ftpd::DiskFileSystem::NameList

Includes:
Ls
Included in:
Ftpd::DiskFileSystem
Defined in:
lib/ftpd/disk_file_system.rb

Overview

DiskFileSystem mixin providing directory name listing

Instance Method Summary collapse

Methods included from Ls

#ls

Instance Method Details

#name_list(ftp_path) ⇒ Object

Get a file list, short form.

This returns one filename per line, and nothing else

Called for:

  • NLST

If missing, then these commands are not supported.



300
301
302
# File 'lib/ftpd/disk_file_system.rb', line 300

def name_list(ftp_path)
  ls(ftp_path, '-1')
end