mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 15:35:05 +02:00
Add local file crawler
This commit is contained in:
parent
273d56c39a
commit
60cd9873bc
7 changed files with 104 additions and 13 deletions
|
|
@ -294,7 +294,7 @@ class OutputDirectory:
|
|||
info = DownloadInfo(path, local_path, tmp_path,
|
||||
heuristics, on_conflict)
|
||||
try:
|
||||
file = open(tmp_path, "bx")
|
||||
file = open(tmp_path, "xb")
|
||||
return self._sink_context_manager(file, info)
|
||||
except FileExistsError:
|
||||
pass # Try again
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue