ref: 82c1dc9af055897ffeb373aee2a107ac0d472156
parent: 56fbadf5e329f00c9c8058e2dfe2350a8cafa850
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Mar 1 12:44:39 EST 2016
make std.diriter skip '.' and '..' The naieve list everything option is probably not the right way to go.
--- a/lib/std/diriter.myr
+++ b/lib/std/diriter.myr
@@ -15,7 +15,10 @@
impl iterable diriter -> byte[:] =
__iternext__ = {itp, valp
+:nextfile
match dirread(itp# castto(dir#))
+ | `Some ".": goto nextfile
+ | `Some "..": goto nextfile
| `Some ent:
valp# = ent
-> true