add filetree utility

sourced from https://gist.github.com/justinthrelkeld/7d096205fff81cdc5ff3