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.

Parameters:

  • ftp_path (String)

    The virtual path



106
107
108
# File 'lib/ftpd/disk_file_system.rb', line 106

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