lib/gofer/host.rb
# Returns a list of the files in the directory at +path+.
Returns a list of the files in the directory at +path+.
Returns a list of the files in the directory at + path + .
def ls path
      response = @ssh.run "ls -1 #{path}", :quiet => true
      if response.exit_status == 0
        response.stdout.strip.split("\n")
      else
        raise HostError.new(self, response, "Could not list #{path}, exit status #{response.exit_status}")
      end
    end
def ls path response = @ssh . run "ls -1 #{path}" , :quiet => true if response . exit_status == 0 response . stdout . strip . split ( "\n" ) else raise HostError . new ( self , response , "Could not list #{path}, exit status #{response.exit_status}" ) end end
Returns a list of the files in the directory at +path+.
Returns a list of the files in the directory at + path + .
path
<not_specific>