Sha256: 631eb6f81dfbc60773efce3af149bdaa839643b2ba81bfa5b746655e72a9cbed

Contents?: true

Size: 358 Bytes

Versions: 11

Compression:

Stored size: 358 Bytes

Contents

require_relative 'command_handler'

module Ftpd

  class CmdCwd < CommandHandler

    def cmd_cwd(argument)
      ensure_logged_in
      path = File.expand_path(argument, name_prefix)
      ensure_accessible path
      ensure_exists path
      ensure_directory path
      self.name_prefix = path
      pwd 250
    end
    alias cmd_xcwd :cmd_cwd

  end

end

Version data entries

11 entries across 11 versions & 2 rubygems

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