def FileEntryExistsByPathSpec(self, path_spec):
    tsk_vs_part, _ = tsk_partition.GetTSKVsPartByPathSpec(
        self._tsk_volume, path_spec)

    # The virtual root file has not corresponding TSK volume system part object
    # but should have a location.
    if tsk_vs_part is None:
      location = getattr(path_spec, u'location', None)
      return location is not None and location == self.LOCATION_ROOT

    return True
Determines if a file entry for a path specification exists.
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/tsk_partition_file_system.py/TSKPartitionFileSystem.FileEntryExistsByPathSpec