directory_map() was skipping files and directories named "0"

Close #1757. Thanks @BennyC!
3 files changed