nvflare.tool.cert.file_utils module

Shared file and name validation helpers for distributed provisioning commands.

read_file_nofollow(path: str, max_size: int, *, too_large_error_factory: Callable[[str], Exception] | None = None) bytes[source]
safe_project_name_error(project_name: str, *, field_label: str = 'Project') Tuple[str, str] | None[source]
write_file_nofollow(path: str, content: bytes, mode: int = 420) None[source]