Skip to content
This repository has been archived by the owner on Aug 30, 2020. It is now read-only.

force download if deletion is enabled #227

Merged
merged 1 commit into from
May 26, 2020
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
2 changes: 1 addition & 1 deletion rhasspy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ async def download_file(url, filename):
src_path = dest_path

# Check if file is already in cache
if os.path.exists(src_path) and (os.path.getsize(src_path) > 0):
if not delete and os.path.exists(src_path) and (os.path.getsize(src_path) > 0):
self._logger.debug(
"Using cached %s for %s", src_path, dest_name
)
Expand Down