Hashir Kashif
commited on
Commit
·
da3db29
1
Parent(s):
4e2ec25
editing99999990999asasdasdasdasasdasddasdasdasd
Browse files- app.py +1 -1
- ftp_test.py +8 -2
app.py
CHANGED
|
@@ -188,7 +188,7 @@ def testTask():
|
|
| 188 |
def connect():
|
| 189 |
ftp = FTP_TLS()
|
| 190 |
ftp.debugging = 2
|
| 191 |
-
ftp.connect('hashir672.serv00.net')
|
| 192 |
ftp.login('f6857_hashir_serv00', 'Hashirisbest@1122')
|
| 193 |
return ftp
|
| 194 |
|
|
|
|
| 188 |
def connect():
|
| 189 |
ftp = FTP_TLS()
|
| 190 |
ftp.debugging = 2
|
| 191 |
+
ftp.connect('hashir672.serv00.net',21)
|
| 192 |
ftp.login('f6857_hashir_serv00', 'Hashirisbest@1122')
|
| 193 |
return ftp
|
| 194 |
|
ftp_test.py
CHANGED
|
@@ -1,12 +1,18 @@
|
|
| 1 |
-
import
|
| 2 |
import requests
|
| 3 |
import time
|
| 4 |
import os
|
| 5 |
import glob
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
for fileName in glob.glob("./testMembership/*.txt"):
|
| 7 |
os.remove(fileName)
|
| 8 |
|
| 9 |
-
session =
|
| 10 |
|
| 11 |
# file = open('./cookies.txt','rb') # file to send
|
| 12 |
# session.storbinary('STOR ./public_html/Membership/cookies.txt', file) # send the file
|
|
|
|
| 1 |
+
from ftplib import FTP_TLS
|
| 2 |
import requests
|
| 3 |
import time
|
| 4 |
import os
|
| 5 |
import glob
|
| 6 |
+
def connect():
|
| 7 |
+
ftp = FTP_TLS()
|
| 8 |
+
ftp.debugging = 2
|
| 9 |
+
ftp.connect('hashir672.serv00.net',8080)
|
| 10 |
+
ftp.login('f6857_hashir_serv00', 'Hashirisbest@1122')
|
| 11 |
+
return ftp
|
| 12 |
for fileName in glob.glob("./testMembership/*.txt"):
|
| 13 |
os.remove(fileName)
|
| 14 |
|
| 15 |
+
session = connect()
|
| 16 |
|
| 17 |
# file = open('./cookies.txt','rb') # file to send
|
| 18 |
# session.storbinary('STOR ./public_html/Membership/cookies.txt', file) # send the file
|