(self, filename, data)
| 298 | self._known_folders.add(path) |
| 299 | |
| 300 | def append(self, filename, data): |
| 301 | if not isinstance(filename, str): |
| 302 | filename = filename.decode("utf-8") |
| 303 | |
| 304 | input = io.BytesIO(data.encode("utf-8")) |
| 305 | |
| 306 | try: |
| 307 | self.con.storbinary("APPE " + filename, input) |
| 308 | except FTPError as e: |
| 309 | self.log_buffer.append(str(e)) |
| 310 | return False |
| 311 | return True |
| 312 | |
| 313 | def get_file(self, filename, out=None): |
| 314 | if not isinstance(filename, str): |
no outgoing calls
no test coverage detected