Class: FakeFtp::ServerCommands::Size
- Inherits:
-
Object
- Object
- FakeFtp::ServerCommands::Size
- Defined in:
- lib/fake_ftp/server_commands/size.rb
Instance Method Summary collapse
Instance Method Details
#run(ctx, filename) ⇒ Object
6 7 8 |
# File 'lib/fake_ftp/server_commands/size.rb', line 6 def run(ctx, filename, *) ctx.respond_with("213 #{ctx.file(filename).bytes}") end |