livinginthepast/fake_ftp

View on GitHub
lib/fake_ftp/server_commands/size.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module FakeFtp
  module ServerCommands
    class Size
      def run(ctx, filename, *)
        ctx.respond_with("213 #{ctx.file(filename).bytes}")
      end
    end
  end
end