red-g / directory / Directory.File

A File located relative to its parent directory.


type alias File =
Internal.File

A File located relative to its parent directory.

decoder : Json.Decode.Decoder File

Decode a File from the following JSON schema:

    {
        "stem": string,
        "extension": string?
    }

extension : File -> Maybe String

Get the file type of a file, if it has one.

stem : File -> String

Get the part of the file name before its type.