moonwalk
recursively walks the working directory back to the root returning all files in the walk back. moonwalk
does not return paths with only directory names.
$ moonwalk
$ moonwalk -path /Users/tmickleydoyle/Desktop
The path needs to be the absolute path to the working directory.
Example Output
/Users/tmickleydoyle/Desktop/data.csv
/Users/tmickleydoyle/Desktop/data.json
/Users/tmickleydoyle/Desktop/filename.txt
/Users/tmickleydoyle/Desktop/download.png
/Users/tmickleydoyle/Desktop/network.json
/Users/tmickleydoyle/cohorts.json
/Users/tmickleydoyle/house_query.sql
/Users/tmickleydoyle/website.html
/Users/tmickleydoyle/blog.txt
/Users/setup.txt
Run the following command in the terminal.
$ go get github.com/tmickleydoyle/moonwalk