Skip to content

source_dir_purge not removing directories without force #1

@erik-smit

Description

@erik-smit

I've noticed that "recurse => true, purge => true" on a file resource doesn't remove directories.
Only if you add "force => true" will it remove directories.

Currently, force isn't implemented in any modules, which causing problems for me.

What do you think would be the way to approach this?

a) Add a source_dir_force parameter.
b) Make source_dir_purge also set force on the source_dir resource.
c) Something else?

My preference goes to b.
The purge parameter clearly states the intention of the user to purge the contents of the directory.
Having to add yet another parameter to actually perform the request is counter-intuitive and confusing.

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