(self, to, inner_path)
| 643 | # List files in directory |
| 644 | @flag.async_run |
| 645 | def actionFileList(self, to, inner_path): |
| 646 | try: |
| 647 | return list(self.site.storage.walk(inner_path)) |
| 648 | except Exception as err: |
| 649 | self.log.error("fileList %s error: %s" % (inner_path, Debug.formatException(err))) |
| 650 | return {"error": Debug.formatExceptionMessage(err)} |
| 651 | |
| 652 | # List directories in a directory |
| 653 | @flag.async_run |