helperFunctions.virtual_file_path module

helperFunctions.virtual_file_path.filter_vpf_dict(vfp_dict, parent_uids)

Get only VFPs from parent files that are contained in parent_uids. :param vfp_dict: A virtual file path dict :param parent_uids: A set of allowed parent UIDs (VFPs from other parent files are filtered out)

Parameters:
  • vfp_dict (dict[str, list[str]]) –

  • parent_uids (set[str]) –

Return type:

dict[str, list[str]]

helperFunctions.virtual_file_path.get_paths_for_all_parents(vfp_dict)

Get a combined list of all paths in all parents (without duplicates) :param vfp_dict: A vfp dict (typically found in FileObject.virtual_file_path)

Parameters:

vfp_dict (dict[str, list[str]]) –

Return type:

list[str]

helperFunctions.virtual_file_path.get_some_vfp(vfp_dict)

Just get some random virtual file path.

Parameters:

vfp_dict (dict[str, list[str]]) –

Return type:

str | None