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

Version Path
ftpd-1.1.1 lib/ftpd/cmd_rmd.rb
ftpd-1.1.0 lib/ftpd/cmd_rmd.rb
investtools-ftpd-1.0.1 lib/ftpd/cmd_rmd.rb
ftpd-1.0.1 lib/ftpd/cmd_rmd.rb
ftpd-1.0.0 lib/ftpd/cmd_rmd.rb
ftpd-0.17.0 lib/ftpd/cmd_rmd.rb
ftpd-0.16.0 lib/ftpd/cmd_rmd.rb
ftpd-0.15.0 lib/ftpd/cmd_rmd.rb
ftpd-0.14.0 lib/ftpd/cmd_rmd.rb
ftpd-0.13.0 lib/ftpd/cmd_rmd.rb
ftpd-0.12.0 lib/ftpd/cmd_rmd.rb