Download of file deletes the temp folder from setup

This commit is contained in:
SimplifiedPrivacy 2026-08-13 08:24:33 -04:00
parent 73c74d339f
commit 1695e0314e

View file

@ -50,6 +50,8 @@ def validate_folder_structure(temp_dir: str, target_folder: str, target_file: st
if found_file:
if found_file.parent != target_folder:
shutil.move(str(found_file), str(target_file_path))
# finally, remove temp directory,
shutil.rmtree(temp_dir, ignore_errors=True)
return True
else:
return False