UNB/ CS/ David Bremner/ teaching/ cs2613/ books/ gobyexample/ examples/ file-paths/ file-paths.sh
$ go run file-paths.go
p: dir1/dir2/filename
dir1/filename
dir1/filename
Dir(p): dir1/dir2
Base(p): filename
false
true
.json
config
t/file
../c/t/file