Sha256: 574de3bd37c5a0c04b3e5ab577bafdef848abfecfda2114e023a89947a8f0c3f
Contents?: true
Size: 490 Bytes
Versions: 5
Compression:
Stored size: 490 Bytes
Contents
require_relative 'command_handler' module Ftpd class CmdRetr < CommandHandler def cmd_retr(argument) close_data_server_socket_when_done do ensure_logged_in ensure_file_system_supports :read path = argument syntax_error unless path path = File.expand_path(path, name_prefix) ensure_accessible path ensure_exists path contents = file_system.read(path) transmit_file contents end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ftpd-0.16.0 | lib/ftpd/cmd_retr.rb |
ftpd-0.15.0 | lib/ftpd/cmd_retr.rb |
ftpd-0.14.0 | lib/ftpd/cmd_retr.rb |
ftpd-0.13.0 | lib/ftpd/cmd_retr.rb |
ftpd-0.12.0 | lib/ftpd/cmd_retr.rb |