red-g / directory / Path.Directory

An absolute directory path. Give this to your backend to load new directories into Elm!


type alias Directory =
Internal.DirectoryPath

An absolute directory path. Give this to your backend to load new directories into Elm!

decoder : Json.Decode.Decoder Directory

Decode a Directory path from the following JSON schema:

    {
        "segments": string[]
    }

encode : Directory -> Json.Encode.Value

Encode a Directory path to the following JSON schema:

    {
        "segments": string[]
    }

root : Directory

The root directory. You'll probably load your first data from here.