code: def GetFileEntryByPathSpec(self, path_spec):
      
      row_index = getattr(path_spec, 'row_index', None)
      row_condition = getattr(path_spec, 'row_condition', None)
  
      # If no row_index or row_condition is provided, return a directory.
      if row_index is None and row_condition is None:
        return sqlite_blob_file_entry.SQLiteBlobFileEntry(
            self._resolver_context, self, path_spec, is_root=True,
            is_virtual=True)
  
      return sqlite_blob_file_entry.SQLiteBlobFileEntry(
          self._resolver_context, self, path_spec)
docs: Retrieves a file entry for a path specification.
  
      Args:
        path_spec (PathSpec): path specification.
  
      Returns:
        FileEntry: a file entry or None.