Sha256: 95b967c62a43f4b217875bf2864cbebe43d9dae70c2da4b45bb424d70c47a989

Contents?: true

Size: 278 Bytes

Versions: 7

Compression:

Stored size: 278 Bytes

Contents

# frozen_string_literal: true

require_relative 'command_handler'

module Ftpd

  class CmdCdup < CommandHandler

    def cmd_cdup(argument)
      syntax_error if argument
      ensure_logged_in
      execute_command 'cwd', '..'
    end
    alias cmd_xcup :cmd_cdup

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ftpd-2.1.0 lib/ftpd/cmd_cdup.rb
ftpd-2.0.5 lib/ftpd/cmd_cdup.rb
ftpd-2.0.4 lib/ftpd/cmd_cdup.rb
ftpd-2.0.3 lib/ftpd/cmd_cdup.rb
ftpd-2.0.2 lib/ftpd/cmd_cdup.rb
ftpd-2.0.1 lib/ftpd/cmd_cdup.rb
ftpd-2.0.0 lib/ftpd/cmd_cdup.rb