Sha256: 85a5139425356cf28ae0383fa34a270e5d20372a8996c3a4a79f90eefdf73c35
Contents?: true
Size: 436 Bytes
Versions: 5
Compression:
Stored size: 436 Bytes
Contents
require_relative 'command_handler' module Ftpd class CmdDele < CommandHandler def cmd_dele(argument) ensure_logged_in ensure_file_system_supports :delete path = argument error "501 Path required" unless path path = File.expand_path(path, name_prefix) ensure_accessible path ensure_exists path file_system.delete path reply "250 DELE command successful" end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ftpd-0.16.0 | lib/ftpd/cmd_dele.rb |
ftpd-0.15.0 | lib/ftpd/cmd_dele.rb |
ftpd-0.14.0 | lib/ftpd/cmd_dele.rb |
ftpd-0.13.0 | lib/ftpd/cmd_dele.rb |
ftpd-0.12.0 | lib/ftpd/cmd_dele.rb |