add_extension_if_not_present
from noon import add_extension_if_not_present
Source-derived function. Host availability is not inferred from this listing. See reference scope.
add_extension_if_not_present(file_name: Path, extension: str) -> Path
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
file_name | positional or keyword | Path | No default |
extension | positional or keyword | str | No default |
Return annotation: Path
Append the extension to the existing suffix, preserving matching paths.