Skip to content
Snippets Groups Projects
Commit 33305d5b authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

switch to rm -rf

parent 1b7e2e2a
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,6 @@ import time
from pathlib import Path
from typing import List, Tuple, Union
import re
import shutil
from functools import cache
import importlib.metadata
......@@ -1107,7 +1106,8 @@ def remove_environment(mpsd_release, root_dir, package_sets="NONE", force_remove
# if "logs" in folders_to_remove:
# folders_to_remove.remove("logs")
for folder in folders_to_remove:
shutil.rmtree(dir_to_remove / folder)
# shutil.rmtree(dir_to_remove / folder) #dosent delete file
run(f"rm -rf {dir_to_remove / folder}", shell=True, check=True)
logging.warning(f"Removed release {mpsd_release} from {root_dir}")
return
# 3rd case: remove specific package_sets from release
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment