mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix #17967 - Fix related to regression on Windows.
os.path.join(*self.dirs) produces an invalid path on windows. ftp paths are always forward-slash seperated like this. /pub/dir.
This commit is contained in:
parent
d71001749d
commit
caa00fec19
1 changed files with 2 additions and 1 deletions
|
@ -2276,7 +2276,8 @@ class ftpwrapper:
|
|||
self.ftp = ftplib.FTP()
|
||||
self.ftp.connect(self.host, self.port, self.timeout)
|
||||
self.ftp.login(self.user, self.passwd)
|
||||
self.ftp.cwd(os.path.join(*self.dirs))
|
||||
_target = '/'.join(self.dirs)
|
||||
self.ftp.cwd(_target)
|
||||
|
||||
def retrfile(self, file, type):
|
||||
import ftplib
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue