Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dg
dg
Commits
c09557de
Commit
c09557de
authored
Sep 20, 2017
by
Jonathan Lambrechts
Browse files
enable ftp passive
parent
88989cfe
Pipeline
#2432
passed with stages
in 33 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dgpy/scripts/dgftp.py
View file @
c09557de
...
...
@@ -31,7 +31,7 @@ dst : str or None
ftp
=
FTP
(
"braque.mema.ucl.ac.be"
,
timeout
=
10
)
ftp
.
login
(
"anonymous"
,
""
)
ftp
.
passive
=
True
#
ftp.set_pasv(False)
ftp
.
set_pasv
(
False
)
ftp
.
cwd
(
dirname
)
if
path
.
isfile
(
dst
)
:
ftpmtraw
=
ftp
.
sendcmd
(
"MDTM "
+
filename
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment