(self, path, size=None)
| 143 | |
| 144 | # ------------------------[ get <file> ]------------------------------ |
| 145 | def get(self, path, size=None): |
| 146 | pclfs = self.dirlist() |
| 147 | for name, (id, size, date) in list(pclfs.items()): |
| 148 | if path == name: |
| 149 | str_recv = self.retrieve_data(id) |
| 150 | return (int(size), str_recv) |
| 151 | print("File not found.") |
| 152 | return c.NONEXISTENT |
| 153 | |
| 154 | def retrieve_data(self, id): |
| 155 | str_send = "&f" + id + "Y" # set macro id |
nothing calls this directly
no test coverage detected