check for availability that don't live in workdir

This commit is contained in:
Jakub Trllo 2025-07-31 12:12:00 +02:00
parent fd1fc7bdfd
commit 47af183d04

View file

@ -1155,12 +1155,15 @@ class IWorkfileHost:
comment = parsed_data.comment comment = parsed_data.comment
filepath = list_workfiles_context.anatomy.fill_root(rootless_path) filepath = list_workfiles_context.anatomy.fill_root(rootless_path)
available = False
if filepath != rootless_path:
available = os.path.exists(filepath)
items.append(WorkfileInfo.new( items.append(WorkfileInfo.new(
filepath, filepath,
rootless_path, rootless_path,
version=version, version=version,
comment=comment, comment=comment,
available=False, available=available,
workfile_entity=workfile_entity, workfile_entity=workfile_entity,
)) ))