lib/junos-ez/utils/fs.rb
### -------------------------------------------------------------
### cwd - change the current working directory.  This method will
### return the String of the new working directory or raise
### and IOError exception if the directory is invalid
### -------------------------------------------------------------

change the current working directory.  This method will
return the String of the new working directory or raise
and IOError exception if the directory is invalid
change the current working directory . This method will return the String of the new working directory or raise and IOError exception if the directory is invalid
def cwd( directory )
    begin
      got = @ndev.rpc.set_cli_working_directory( :directory => directory )
    rescue => e
      raise IOError, "invalid directory: #{directory}"
    else
      got.xpath('working-directory').text
    end    
  end
def cwd ( directory ) begin got = @ndev . rpc . set_cli_working_directory ( :directory => directory ) rescue => e raise IOError , "invalid directory: #{directory}" else got . xpath ( 'working-directory' ) . text end end
cwd - change the current working directory.
cwd - change the current working directory .
directory
<not_specific>