148 if self.__proxyType != E5FtpProxyType.NoProxy: |
150 if self.__proxyType != E5FtpProxyType.NoProxy: |
149 if not self.__proxyHost: |
151 if not self.__proxyHost: |
150 raise E5FtpProxyError( |
152 raise E5FtpProxyError( |
151 "990 Proxy usage requested, but no proxy host given.") |
153 "990 Proxy usage requested, but no proxy host given.") |
152 |
154 |
153 return super().connect(self.__proxyHost, self.__proxyPort, self.__timeout) |
155 return super(E5Ftp, self).connect(self.__proxyHost, self.__proxyPort, self.__timeout) |
154 else: |
156 else: |
155 return super().connect(self.__host, self.__port, self.__timeout) |
157 return super(E5Ftp, self).connect(self.__host, self.__port, self.__timeout) |
156 |
158 |
157 def login(self, user="", password="", acct=""): |
159 def login(self, user="", password="", acct=""): |
158 """ |
160 """ |
159 Public method to login to the FTP server. |
161 Public method to login to the FTP server. |
160 |
162 |