Provide helper for "remove all content from a directory except these names" #3563
Labels
code | plugins
Changes to the plugin implementation
priority | could
low priority, could be included in the next release
status | backlog
Defined, prioritized, we plan to work on it.
Current
prune()
of steps and plugins removes the whole directory. If there are members to be preserved, there's_preserved_workdir_members
list, but some of the preservable members may be more dynamic, and then the customprune()
turns into a copy & paste madness. See #3511, #3548. We need a helper to do the job, then call it from these customprune()
implementations.Consider also supporting glob-style patterns, i.e.
_preserved_workdir_members = ['guest-logs/*']
should be acceptable, I see no reason why guest should list all guest logs, or why it should have its own customprune()
just to skip this directory.The text was updated successfully, but these errors were encountered: