Sha256: dfee06023a2d124578c490ec846e7b576e6c70000491b633f1e1886ff03a64cb

Contents?: true

Size: 558 Bytes

Versions: 7

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

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
        receive_file do |data_socket|
          file_system.append path, data_socket
        end
        reply "226 Transfer complete"
      end
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

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