Path Utilities
realpath
Resolve a path to its absolute, canonical form.
aict realpath [path...]
<realpath timestamp="1234567890" path="src/../main.go"
absolute="/project/main.go" exists="true" type="file"/>
basename
Extract the filename and optionally the stem/extension from a path.
aict basename [path...]
<basename timestamp="1234567890" path="/project/main.go"
name="main.go" stem="main" extension=".go"/>
dirname
Extract the parent directory from a path.
aict dirname [path...]
<dirname timestamp="1234567890" path="/project/main.go"
directory="/project"/>
pwd
Print the current working directory with home-relative path.
aict pwd
<pwd timestamp="1234567890" path="/project/src"
home="/home/user" relative_to_home="~/project/src"/>