Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d710017 commit caa00feCopy full SHA for caa00fe
1 file changed
Lib/urllib/request.py
@@ -2276,7 +2276,8 @@ def init(self):
2276
self.ftp = ftplib.FTP()
2277
self.ftp.connect(self.host, self.port, self.timeout)
2278
self.ftp.login(self.user, self.passwd)
2279
- self.ftp.cwd(os.path.join(*self.dirs))
+ _target = '/'.join(self.dirs)
2280
+ self.ftp.cwd(_target)
2281
2282
def retrfile(self, file, type):
2283
import ftplib
0 commit comments