Skip to content

Commit 8fb096b

Browse files
committed
no overwrite dir path name
1 parent ad10845 commit 8fb096b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

abmwrappers/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ def remove_directory_tree(dir_path: str, remove_root: bool = True) -> None:
152152
os.remove(file_path)
153153

154154
# Remove all subdirectories in the current directory
155-
for dir_name in dirs:
156-
dir_path = os.path.join(root, dir_name)
157-
os.rmdir(dir_path)
155+
for subdir_name in dirs:
156+
subdir_path = os.path.join(root, subdir_name)
157+
os.rmdir(subdir_path)
158158

159159
# Remove the root directory if specified
160160
if remove_root:

0 commit comments

Comments
 (0)