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.
find_on_path
Find binary on the process PATH, returning the first executable match.
is_executable
Whether path is an existing regular file the process may execute (on non-Unix, merely an existing file โ€” there is no mode bit to check).