Snoop v0.1.0 Snoop View Source

Snoop helps with trees. Specifically, makes directory trees from a path in your file system.

Examples

Snoop.build_tree("./lib")
#=> [.: ["app.ex": nil, "helpers": ["helper.ex": nil]]]

Snoop.print_html_tree("./lib")
#=> <ul><li>app.ex</li><li>helpers<ul><li>helper.ex</li></ul></ul>

Link to this section Summary

Functions

Given a base path, build the file tree below it.

Given a base path, prints out the existing tree as HTML list(s). This operation reads from the previously built tree (using build_tree/2) for performance reasons. Building a tree takes time, and you may want to print it more than once.

Link to this section Functions

Link to this function

build_tree(base_path, opts \\ [])

View Source

Given a base path, build the file tree below it.