Sha256: 8950d13527495aae5baf35569421030e1682735f092d11e5c63193e847f30273
Contents?: true
Size: 491 Bytes
Versions: 7
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true 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
7 entries across 7 versions & 1 rubygems