class FakeFtp::ServerCommands::Cwd

Public Instance Methods

run(ctx, wd, *) click to toggle source
# File lib/fake_ftp/server_commands/cwd.rb, line 6
def run(ctx, wd, *)
  wd = "/#{wd}" unless wd.start_with?('/')
  ctx.workdir = wd
  '250 OK!'
end