Class: FakeFtp::ServerCommands::Cwd

Inherits:
Object
  • Object
show all
Defined in:
lib/fake_ftp/server_commands/cwd.rb

Instance Method Summary collapse

Instance Method Details

#run(ctx, wd) ⇒ Object



6
7
8
9
10
# 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