parameters: (self, device_path, as_root=False, **kwargs)
return_statement: return entries
docstring: Run and scrape the output of 'ls -a -l' on a device directory.
docstring_summary: Run and scrape the output of 'ls -a -l' on a device directory.
docstring_tokens: Run and scrape the output of ls - a - l on a device directory .
function: def _ParseLongLsOutput(self, device_path, as_root=False, **kwargs):
      """Run and scrape the output of 'ls -a -l' on a device directory."""
      device_path = posixpath.join(device_path, '')  # Force trailing '/'.
      output = self.RunShellCommand(
          ['ls', '-a', '-l', device_path], as_root=as_root,
          check_return=True, env={'TZ': 'utc'}, **kwargs)
      if output and output[0].startswith('total '):
        output.pop(0) # pylint: disable=maybe-no-member
  
      entries = []
      for line in output:
        m = _LONG_LS_OUTPUT_RE.match(line)
        if m:
          if m.group('filename') not in ['.', '..']:
            entries.append(m.groupdict())
        else:
          logger.info('Skipping: %s', line)
  
      return entries
function_tokens: def _ParseLongLsOutput ( self , device_path , as_root = False , * * kwargs ) : device_path = posixpath . join ( device_path , '' ) # Force trailing '/'. output = self . RunShellCommand ( [ 'ls' , '-a' , '-l' , device_path ] , as_root = as_root , check_return = True , env = { 'TZ' : 'utc' } , * * kwargs ) if output and output [ 0 ] . startswith ( 'total ' ) : output . pop ( 0 ) # pylint: disable=maybe-no-member entries = [ ] for line in output : m = _LONG_LS_OUTPUT_RE . match ( line ) if m : if m . group ( 'filename' ) not in [ '.' , '..' ] : entries . append ( m . groupdict ( ) ) else : logger . info ( 'Skipping: %s' , line ) return entries