List files in directory
Created by: Lartu
While we provide ways to read from and write to files in directories, we don't provide any ways to LIST
the contents of a directory. We need that in LDPL.
I'd recommend some syntax like
LIST CONTENTS OF DIRECTORY <string-expression> IN <string-list>
It should be portable, though, and that's where the problem lies. Any thoughts? Should we go ahead and just execute ls -l
under linux and dir
in windows and parse accordingly or any of you has got any better ideas?