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 7d15b54 commit 4e42ae8Copy full SHA for 4e42ae8
1 file changed
Lib/urllib/request.py
@@ -2273,8 +2273,7 @@ def init(self):
2273
self.ftp = ftplib.FTP()
2274
self.ftp.connect(self.host, self.port, self.timeout)
2275
self.ftp.login(self.user, self.passwd)
2276
- for dir in self.dirs:
2277
- self.ftp.cwd(dir)
+ self.ftp.cwd(os.path.join(*self.dirs))
2278
2279
def retrfile(self, file, type):
2280
import ftplib
0 commit comments