From f9b668626b0e0c648139e414c9ea2e148043bfe3 Mon Sep 17 00:00:00 2001 From: WickedYoda <68271168+wickedyoda@users.noreply.github.com> Date: Wed, 29 Jan 2025 00:20:20 -0600 Subject: [PATCH] Update copy_palworld_local.py --- copy_palworld_local/copy_palworld_local.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copy_palworld_local/copy_palworld_local.py b/copy_palworld_local/copy_palworld_local.py index 285f8a3..84114f4 100644 --- a/copy_palworld_local/copy_palworld_local.py +++ b/copy_palworld_local/copy_palworld_local.py @@ -12,9 +12,10 @@ REMOTE_DIR = "/remote_directory" # Change this to the directory you want to syn LOCAL_DIR = "/local/directory" # Change this to the local path where files should be saved def connect_ftp(): - """Connect to FTP server.""" + """Connect to FTP server with passive mode enabled.""" ftp = ftplib.FTP(FTP_HOST) ftp.login(FTP_USER, FTP_PASS) + ftp.set_pasv(True) # Enable passive mode return ftp def ensure_local_dir(path):