1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Fixed an implementation of replace action in folder applier

This commit is contained in:
Valentin Sokolov 2023-03-16 19:01:51 +04:00 committed by Evgeny Sinelnikov
parent 0e6c3bb6aa
commit 4b4adbf3e1

View File

@ -65,6 +65,8 @@ class Folder:
def _delete_action(self):
if self.folder_path.exists():
if self.action == FileAction.REPLACE:
self.delete_folder = True
remove_dir_tree(self.folder_path,
self.delete_files,
self.delete_folder,