Skip to content

Output directory tree structure, and manipulate the objects in it.

License

Notifications You must be signed in to change notification settings

minodisk/go-tree

Repository files navigation

tree GoDoc

Output directory tree structure, and manipulate the objects in it.

Installation

go get github.com/minodisk/go-tree

Usage

func main() {
	foo, _ := tree.NewDir("./fixtures/foo", tree.ConfigDefault)
	foo.OpenRec()
	foo.Lines() // -> - foo/
	            //     - bar/
	            //      - baz/
	            //       - qux/
	            //     | a.txt
	            //     | b.txt
	            //     | c.txt`

	baz, _ := foo.IndexOf(2)
	baz.Close()
	baz.Lines() // -> - foo/
	            //     - bar/
	            //      + baz/
	            //     | a.txt
	            //     | b.txt
	            //     | c.txt`
}

About

Output directory tree structure, and manipulate the objects in it.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages