readdir and stat.

With this set of changes,
ls '#Z'
works

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>