directory_map(); will now display file names such as 0, will still avoid all previous filenames. Also includes tests.
Detecting for 0 in file name, along with attached tests.
Pull request for issue #1757, as stated in the subject. Messed up on pull request referencing, so leaving a comment to create a notification! Thanks!
Your new test doesn't catch '.' and '..'
The code works in default $hidden = FALSE mode because '.' and '..' are caught by the next $file === '.' part, but the code doesn't work in $hidden = TRUE mode.
$file === '.'