Skip to content

Add function to get root directory #66

Open
@adius

Description

@adius

Is there really no function to get the root directory? 😳

rootDirectory :: FilePath -> FilePat

rootDirectory "/directory/other.ext" == "/"
rootDirectory "directory/other.ext" == "directory"
rootDirectory "/foo/bar/baz" == "/"
rootDirectory "foo/bar/baz" == "foo"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions