

def FileEntryExistsByPathSpec(self, path_spec):
    'Determines if a file entry for a path specification exists.\n\n    Args:\n      path_spec: a path specification (instance of PathSpec).\n\n    Returns:\n      Boolean indicating if the file entry exists.\n    '
    tar_info = None
    location = getattr(path_spec, 'location', None)
    if ((self is None) or (not location.startswith(self.LOCATION_ROOT))):
        return
    if (len(location) == 1):
        return True
    try:
        tar_info = self._tar_file.getmember(location[1:])
    except KeyError:
        pass
    return (tar_info is not None)

dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/tar_file_system.py TARFileSystem.FileEntryExistsByPathSpec/VarMisuse@32/118 `location`->`self`