class FakeFtp::ServerCommands::Cwd
Public Instance Methods
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
# 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