Sha256: d47abba1ff7a0e88d099a08378a421ee7237dfc96ea764ce33f97cbcf909d156
Contents?: true
Size: 527 Bytes
Versions: 6
Compression:
Stored size: 527 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 receive_file do |data_socket| file_system.append path, data_socket end reply "226 Transfer complete" end end end end
Version data entries
6 entries across 6 versions & 2 rubygems