FsUtils (FsUtils v0.1.0) View Source

Documentation for FsUtils. A collection of little helpers for the file system.

Install

See the README

Link to this section Summary

Functions

Get the tree as a map.

Link to this section Functions

Get the tree as a map.

The value of each key is either another Map (subdirectory) or a binary (the content of the file)

Examples

iex> FsUtils.tree("test/fixtures")
%{
  "fixtures" => %{
    "p1" => %{
      "p1.1" => %{ "p1.1.1" => %{ "index.html" => "<h1>Index</h1>"} },
      "p1.2" => %{ "p1.2.1" => %{} },
    },
    "p2" => %{
      "p2.1" => %{}
    }
  }
}