Sha256: 82b630808dcb309f8585b598621a7e9536da3195ad675703e57ef48f745962aa

Contents?: true

Size: 504 Bytes

Versions: 5

Compression:

Stored size: 504 Bytes

Contents

require_relative 'command_handler'

module Ftpd

  class CmdAppe < CommandHandler

    def cmd_appe(argument)
      close_data_server_socket_when_done do
        ensure_logged_in
        ensure_file_system_supports :append
        path = argument
        syntax_error unless path
        path = File.expand_path(path, name_prefix)
        ensure_accessible path
        contents = receive_file
        file_system.append path, contents
        reply "226 Transfer complete"
      end
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ftpd-0.16.0 lib/ftpd/cmd_appe.rb
ftpd-0.15.0 lib/ftpd/cmd_appe.rb
ftpd-0.14.0 lib/ftpd/cmd_appe.rb
ftpd-0.13.0 lib/ftpd/cmd_appe.rb
ftpd-0.12.0 lib/ftpd/cmd_appe.rb