(self)
| 1793 | raise |
| 1794 | |
| 1795 | def init(self): |
| 1796 | import ftplib |
| 1797 | self.busy = 0 |
| 1798 | self.ftp = ftplib.FTP() |
| 1799 | self.ftp.connect(self.host, self.port, self.timeout) |
| 1800 | self.ftp.login(self.user, self.passwd) |
| 1801 | _target = '/'.join(self.dirs) |
| 1802 | self.ftp.cwd(_target) |
| 1803 | |
| 1804 | def retrfile(self, file, type): |
| 1805 | import ftplib |