MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / init

Method init

tools/python-3.11.9-amd64/Lib/urllib/request.py:2418–2425  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2416 raise
2417
2418 def init(self):
2419 import ftplib
2420 self.busy = 0
2421 self.ftp = ftplib.FTP()
2422 self.ftp.connect(self.host, self.port, self.timeout)
2423 self.ftp.login(self.user, self.passwd)
2424 _target = '/'.join(self.dirs)
2425 self.ftp.cwd(_target)
2426
2427 def retrfile(self, file, type):
2428 import ftplib

Callers 2

__init__Method · 0.95
retrfileMethod · 0.95

Calls 4

connectMethod · 0.45
loginMethod · 0.45
joinMethod · 0.45
cwdMethod · 0.45

Tested by

no test coverage detected