123456789101112131415161718 |
- use std
- use "dispatch"
- const ls = {params
- var dir, dirname
- std.put("ls called\n")
- dirname=params[0]
- dir = std.try(std.diropen(dirname))
- for f : std.byentry(dir)
- std.put("{}\n",f)
- ;;
- }
- const __init__ = {
- dispatch.register("ls",ls)
- }
|