Skip to content

Commit

Permalink
utils: use passive FTP by default
Browse files Browse the repository at this point in the history
Signed-off-by: Jacopo Notarstefano <jacopo.notarstefano@gmail.com>
  • Loading branch information
jacquerie committed Feb 20, 2018
1 parent 3439969 commit fd99aa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hepcrawl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def unzip_xml_files(filename, target_folder):
return xml_files


def ftp_connection_info(ftp_host, netrc_file, passive_mode=False):
def ftp_connection_info(ftp_host, netrc_file, passive_mode=True):
"""Return ftp connection info from netrc and optional host address."""
if not ftp_host:
ftp_host = netrc(netrc_file).hosts.keys()[0]
Expand All @@ -72,7 +72,7 @@ def ftp_list_files(
user,
password,
destination_folder=None,
passive_mode=False,
passive_mode=True,
only_missing_files=True,
):
"""
Expand Down

0 comments on commit fd99aa8

Please sign in to comment.