Skip to content

irmin-pack: implement fresh for lower layer #2238

@metanivek

Description

@metanivek

A low priority leftover task from #2182.

Currently the code does not properly support using the fresh configuration flag when using a lower layer. It simply prints a message telling the user to remove the data in the lower layer path provided. To properly support this flag, we should recursively delete the data in the provided path.

(* TODO: implement recursive delete for lower root *)
failwith
(Fmt.str
"Lower root already exists but fresh = true in configuration. \
Please manually remove %s."
path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions