Expand description
Small filesystem-path helpers shared across the workspace.
Functionsยง
- expand_
tilde - Expand a leading
~or~/inpathagainsthome. A path that does not begin with a tilde segment is returned unchanged. - expand_
tilde_ env - Expand a leading
~/~/inpathagainst$HOME, read from the process environment. A path without a tilde segment โ or when$HOMEis unset โ passes through unchanged. - find_
on_ path - Find
binaryon the processPATH, returning the first executable match. - is_
executable - Whether
pathis an existing regular file the process may execute (on non-Unix, merely an existing file โ there is no mode bit to check).