force download if deletion is enabled
ignore that file might exist already, change motivated by #213
This commit is contained in:
+1
-1
@@ -584,7 +584,7 @@ class RhasspyCore:
|
||||
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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user