Ask a question to get started
Enter to send•Shift+Enter new line
Format a filesystem path for display.
Paths under the user's home directory are shown relative to ~. All other paths are returned as-is.
~
format_path( path: str | None, ) -> str
path
str | None
Absolute filesystem path, or None.
None