ls files from remote temp folder. Parameters ---------- path: str The relative location to remote temp folder. Returns ------- dirs: str The files in the given directory with split token ','.
(self, path)
| 148 | self._remote_funcs["remove"](path) |
| 149 | |
| 150 | def listdir(self, path): |
| 151 | """ls files from remote temp folder. |
| 152 | |
| 153 | Parameters |
| 154 | ---------- |
| 155 | path: str |
| 156 | The relative location to remote temp folder. |
| 157 | |
| 158 | Returns |
| 159 | ------- |
| 160 | dirs: str |
| 161 | The files in the given directory with split token ','. |
| 162 | """ |
| 163 | if "listdir" not in self._remote_funcs: |
| 164 | self._remote_funcs["listdir"] = self.get_function("tvm.rpc.server.listdir") |
| 165 | return self._remote_funcs["listdir"](path) |
| 166 | |
| 167 | def load_module(self, path): |
| 168 | """Load a remote module, the file need to be uploaded first. |