I'm not the best PHP programmer and i have little issue with directory_map function.
I have data directory, and i have one html file and one directory inside.
When my directory has name with only numbers - directory_map creates array like this:
Array (  => Array ( )  => index.html )
Array key/index is automatically incremented for next file/dir. Is this intentional?
Fix issue #1978
Indeed, it is a bug. Fixed in the above-referenced commit.
Add an upgrade note about change in the results of Directory Helper's…
see issue #1978