def _Open(self, path_spec, mode='rb'):
    if not path_spec.HasParent():
      raise errors.PathSpecError(
          u'Unsupported path specification without parent.')

    file_object = resolver.Resolver.OpenFileObject(
        path_spec.parent, resolver_context=self._resolver_context)

    try:
      tsk_image_object = tsk_image.TSKFileSystemImage(file_object)
      tsk_volume = pytsk3.Volume_Info(tsk_image_object)
    except:
      file_object.close()
      raise

    self._file_object = file_object
    self._tsk_volume = tsk_volume
Opens the file system object defined by path specification.
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/tsk_partition_file_system.py/TSKPartitionFileSystem._Open