Download of file deletes the temp folder from setup
This commit is contained in:
parent
73c74d339f
commit
1695e0314e
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue