Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def upload_to_ftp(filename):
|
|
122 |
try:
|
123 |
transport = paramiko.Transport((FTP_HOST, 22))
|
124 |
if filename.endswith(".txt"):
|
125 |
-
destination_path=FTP_DIR+'/txt/'filename
|
126 |
else:
|
127 |
destination_path=FTP_DIR+filename
|
128 |
transport.connect(username = FTP_USER, password = FTP_PASS)
|
|
|
122 |
try:
|
123 |
transport = paramiko.Transport((FTP_HOST, 22))
|
124 |
if filename.endswith(".txt"):
|
125 |
+
destination_path=FTP_DIR+'/txt/'+filename
|
126 |
else:
|
127 |
destination_path=FTP_DIR+filename
|
128 |
transport.connect(username = FTP_USER, password = FTP_PASS)
|