(args = [])
| 166 | |
| 167 | @staticmethod |
| 168 | def ls_native2(args = []): |
| 169 | res = "" |
| 170 | from subprocess import PIPE, Popen |
| 171 | |
| 172 | pls = Popen(["ls"]+args, stdout=PIPE, |
| 173 | stderr=PIPE, |
| 174 | close_fds=True) |
| 175 | return [fn.rstrip("\n") for fn in pls.stdout.readlines()] + [fn.rstrip("\n") for fn in pls.stderr.readlines()] |
| 176 | |
| 177 | @staticmethod |
| 178 | def readFile(filename): |