Detecting for 0 in file name, along with attached tests - fixes #1757 #1758

wants to merge 1 commit into

3 participants


directory_map(); will now display file names such as 0, will still avoid all previous filenames. Also includes 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[0] === '.' part, but the code doesn't work in $hidden = TRUE mode.

@narfbg narfbg closed this Sep 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment