Skip to content

Update subcommand to flag extra directories #5

Description

@lordofscripts

Applies to goVault v1.1.0-RC.2 tool govault

BACKGROUND

The govault update subcommand takes a modified JSON (Virtual structure) file and updates the filesystem on disk accordingly by creating any new directories in the Virtual (JSON) structure that are not present in the real filesystem.

DRAWBACKS

Currently v1.1.0-RC.2 does that one-way update but does not flag any superfluous (sub)directories that are present on the filesystem that are an eyesore on your neat JSON file. Usually the idea is that the actual filesystem conforms to the Virtual structure you specified because you want replicability without compromise.

ENHANCEMENT

It would be nice that the update subcommand also do this:

  • Flag directories in the real filesystem that are *not defined in the JSON structure file
  • Perhaps add a --non-strict flag to relax the detection by not flagging it. By default it would flag it.
  • It must not -under any circumstance- delete directories that are flagged, that would be the responsibility of the user.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementEnhancement of an existing feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions