MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _normalized_part_labels

Function _normalized_part_labels

paperflow/roles.py:92–93  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

90 """Append the role/user storage label unless role subdirectories are disabled."""
91 if not role_storage_subdir_enabled() or not str(user_id or "").strip():
92 return path
93 label = storage_label_for_user_id(user_id, project_root=project_root)
94 if label in path.parts:
95 return path
96 return path / label

Callers 1

apply_output_scopeFunction · 0.85

Calls 1

slugFunction · 0.85

Tested by

no test coverage detected