List a directory in long form. By default list current directory to stdout. Optional last argument is callback function; all non-empty arguments before it are concatenated to the LIST command. (This *should* only be used for a pathname.)
(self, *args)
| 554 | return files |
| 555 | |
| 556 | def dir(self, *args): |
| 557 | '''List a directory in long form. |
| 558 | By default list current directory to stdout. |
| 559 | Optional last argument is callback function; all |
| 560 | non-empty arguments before it are concatenated to the |
| 561 | LIST command. (This *should* only be used for a pathname.)''' |
| 562 | cmd = 'LIST' |
| 563 | func = None |
| 564 | if args[-1:] and type(args[-1]) != type(''): |
| 565 | args, func = args[:-1], args[-1] |
| 566 | for arg in args: |
| 567 | if arg: |
| 568 | cmd = cmd + (' ' + arg) |
| 569 | self.retrlines(cmd, func) |
| 570 | |
| 571 | def mlsd(self, path="", facts=[]): |
| 572 | '''List a directory in a standardized format by using MLSD |