Skip to main content

Module fs

Module fs 

Source
Expand description

Small filesystem-path helpers shared across the workspace.

Functions§

expand_tilde
Expand a leading ~ or ~/ in path against home. A path that does not begin with a tilde segment is returned unchanged.
expand_tilde_env
Expand a leading ~/~/ in path against $HOME, read from the process environment. A path without a tilde segment — or when $HOME is unset — passes through unchanged.