YashsharmaPhD commited on
Commit
68d4170
·
verified ·
1 Parent(s): 6521807

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ if st.sidebar.button("🔄 Connect & List Files"):
19
  # Connect to FTP server with a timeout of 120 seconds
20
 
21
  ftp = FTP(host_input, timeout=120)
22
- ftp.set_pasv(True)
23
  ftp.login(user=username_input, passwd=password_input)
24
 
25
  # Enable passive mode
 
19
  # Connect to FTP server with a timeout of 120 seconds
20
 
21
  ftp = FTP(host_input, timeout=120)
22
+ ftp.connect(host, 21)
23
  ftp.login(user=username_input, passwd=password_input)
24
 
25
  # Enable passive mode