Skip to content
Snippets Groups Projects
Commit e0bb0285 authored by Francois Ancien's avatar Francois Ancien
Browse files

Correcting ftp query

parent 954889da
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ def main(args=None): ...@@ -25,7 +25,7 @@ def main(args=None):
ftp.login(user="ftp_iderha_user", passwd="ftp_iderha_pass") ftp.login(user="ftp_iderha_user", passwd="ftp_iderha_pass")
tmp_path = "tmp_data.json" tmp_path = "tmp_data.json"
with open(tmp_path, "wb") as fh: with open(tmp_path, "wb") as fh:
ftp.retrbinary(ftp_path, fh.write) ftp.retrbinary(f"RETR {ftp_path}", fh.write)
# Extracting data from json # Extracting data from json
with open(tmp_path, "rb") as f: with open(tmp_path, "rb") as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment