From 4bbbae912fa08d90a020e0baf538b77aa2ee82f0 Mon Sep 17 00:00:00 2001 From: emilsvennesson Date: Sat, 5 Oct 2024 21:13:58 +0200 Subject: [PATCH] return rmtree remove result --- lib/inputstreamhelper/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/inputstreamhelper/utils.py b/lib/inputstreamhelper/utils.py index a7353050..dba2cbe9 100644 --- a/lib/inputstreamhelper/utils.py +++ b/lib/inputstreamhelper/utils.py @@ -360,8 +360,10 @@ def remove_tree(path): try: rmtree(compat_path(path)) + return True except FileNotFoundError as e: - log(4, f'Error removing tree: {e}') + log(4, f"Error removing tree: {e}") + return False def parse_version(vstring):