Subject: | option to remove installed share files that were removed from the dist |
It'd be nice to be able to cleanup the installed sharedir so that old files are removed.
For example:
v0.01 of our module installed …/foo …/bar …/baz
v0.02 of our module has: an updated …/foo, the same …/bar, removes …/baz, and a new file …/wop
When installing v0.02 on top of the old v0.01:
ok: …/foo is updated
ok: …/bar remains the same
ok: …/wop is installed
eek: …/baz still exists!
It could be as simple as a bulk cleanup first (e.g. File::Path::Tiny::empty_dir($share_dir)). or a comparison of the installed dir against the dist dir to find what was removed in the dist dir and only remove those.
Thanks!