Update ftp_client.py

This commit is contained in:
Mr Chen 2024-11-29 18:45:45 +08:00
parent efc715678b
commit 7a1bc2ee39
1 changed files with 6 additions and 2 deletions

View File

@ -14,8 +14,12 @@ import json
import paramiko
import ftplib
sys.path.append(os.getcwd() + "/class/core")
import mw
web_dir = os.getcwd() + "/web"
if os.path.exists(web_dir):
sys.path.append(web_dir)
os.chdir(web_dir)
import core.mw as mw
DEBUG = True
BLOCK_SIZE = 1024 * 1024 * 2