add rewinddir() before return
add doc and dot filter in Directory.ls()