Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xArchive - During extraction, remove files from destination if not exist in Archive - possible? #744

Open
CHDAFNI-MSFT opened this issue Mar 14, 2022 · 0 comments

Comments

@CHDAFNI-MSFT
Copy link

xPSDesiredStateConfiguration - xArchive - Scenario: a versioned Archive zip - Is there a way to remove stale/orphaned files from destination folder that no longer exist in the archive (filename wise)?
Ex:
Initial (v1) Archive.zip -> extracted File1.txt, File2.txt, File3.txt -> C:\temp
(v2) Archive.zip -> extracted File1.txt, File3.txt -> C:\temp
(Goal would be File2.txt to be removed while File1.txt and File3.txt were updated).

The parameters for xArchive appear (at first glance) to only provide ways to update destination files or copy new files from Archive. Else I can provide an 'Absent' xArchive resource - but that seems a bit counter productive if the archive file will be versioned frequently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant