Sha256: 234cad3a90cd65dd1934a75513b74b944aac8f51b0e987d3d0573f5c2d4eb399
Contents?: true
Size: 460 Bytes
Versions: 11
Compression:
Stored size: 460 Bytes
Contents
require_relative 'command_handler' module Ftpd class CmdRmd < CommandHandler def cmd_rmd(argument) syntax_error unless argument ensure_logged_in ensure_file_system_supports :rmdir path = File.expand_path(argument, name_prefix) ensure_accessible path ensure_exists path ensure_directory path file_system.rmdir path reply '250 RMD command successful' end alias cmd_xrmd :cmd_rmd end end
Version data entries
11 entries across 11 versions & 2 rubygems