Skip to content

Commit

Permalink
force download if deletion is enabled
Browse files Browse the repository at this point in the history
ignore that file might exist already,
change motivated by synesthesiam#213
  • Loading branch information
kroka authored May 22, 2020
1 parent 77d2196 commit 6411924
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 6411924

Please sign in to comment.