Module: Ftpd::DiskFileSystem::Delete

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

Overview

DiskFileSystem mixin providing file deletion

Instance Method Summary collapse

Methods included from TranslateExceptions

included, #translate_exception

Instance Method Details

#delete(ftp_path) ⇒ Object

Remove a file.

Called for:

  • DELE

If missing, then these commands are not supported.



98
99
100
# File 'lib/ftpd/disk_file_system.rb', line 98

def delete(ftp_path)
  FileUtils.rm expand_ftp_path(ftp_path)
end