Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/apm_cli/deps/github_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ def download_subdirectory_package(self, dep_ref: DependencyReference, target_pat

# If target exists and has content, remove it
if target_path.exists() and any(target_path.iterdir()):
shutil.rmtree(target_path)
_rmtree(target_path)
target_path.mkdir(parents=True, exist_ok=True)

# Copy subdirectory contents to target
Expand Down Expand Up @@ -1409,7 +1409,7 @@ def download_package(

# If directory already exists and has content, remove it
if target_path.exists() and any(target_path.iterdir()):
shutil.rmtree(target_path)
_rmtree(target_path)
target_path.mkdir(parents=True, exist_ok=True)

# Store progress reporter so we can disable it after clone
Expand Down
Loading