(path: Path)
| 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 |
no test coverage detected