2 # ftc <file>: file tree create
7 ltarget="$(readlink -- "$1" && echo 'x')"
10 echo "l ${#ltarget} $ltarget"
11 elif [ -f "$1" ]; then
13 stat --format=$'x %s' -- "$1"
15 stat --format=$'f %s' -- "$1"
19 elif [ -d "$1" ]; then
27 echo -n "+ ${#entry} $entry "
33 echo "File of unknown type!" 1>&2