Skip to content

Commit 44d58df

Browse files
committed
fixed error when no_cache_dir=True
1 parent 989abab commit 44d58df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ffmpeg_downloader/_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def do(filename, url, content_type, size, *cache_info):
193193
copyfile(zippath, cache_info[0])
194194

195195
# move the downloaded file to the final destination
196-
if cache_info[0] != dstpath:
196+
if not zippath.startswith(dst):
197197
move(zippath, dst)
198198
elif cache_info[0] != dstpath:
199199
# if not downloading to the cache dir, copy the file

0 commit comments

Comments
 (0)