Skip to content

Walk the working directory towards the root recursively

License

Notifications You must be signed in to change notification settings

tmickleydoyle/moonwalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoonWalk: Walk to the root directory

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.

Examples

Moonwalk from the current directory

$ moonwalk

Moonwalk from a specific directory

$ 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

Installation

Run the following command in the terminal.

$ go get github.com/tmickleydoyle/moonwalk

About

Walk the working directory towards the root recursively

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages