Update copy_palworld_local.py

This commit is contained in:
WickedYoda committed 2025-01-29 00:20:20 -06:00
1 parent 439b98023c
commit f9b668626b
1 file changed
+2 -1
+2 -1
View File
@@ -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):