Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #268 from retupmoca/nom
Check for filename length instead of truthiness.
  • Loading branch information
FROGGS committed May 11, 2014
2 parents 5c160e7 + dd4a0e6 commit c1845e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO.pm
Expand Up @@ -563,7 +563,7 @@ my class IO::Path is Cool does IO::FileTestable {
#?if !parrot
loop {
my Str $elem := nqp::nextfiledir($dirh);
if nqp::isnull_s($elem) || !$elem {
if nqp::isnull_s($elem) || !$elem.chars {
nqp::closedir($dirh);
last;
} else {
Expand Down

0 comments on commit c1845e2

Please sign in to comment.