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



108
109
110
# File 'lib/ftpd/disk_file_system.rb', line 108

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