archive.extract "clean: True" cannot delete top level files #52127
Labels
Feature
new functionality including changes to functionality and code refactors, etc.
fixed-pls-verify
fix is linked, bug author to confirm fix
Milestone
Description of Issue/Question
When apply archive.extract state, if
clean
is set toTrue
, only files paths that belong to the zip file will be deleted.For example, A zip file contains the following
When applying
archive.extract
, everything in the list above will be deleted before the archive is extracted. However, if I add another file to the target directorytest3.txt
, it will never be deleted.It's the same when you update your archive, say
test2.txt
is no longer part of the archive,test2.txt
will never get deleted in the target directory.This has caused some drama for us because we use archive.extract to deploy a lot of applications.
The text was updated successfully, but these errors were encountered: