Skip to content

Commit

Permalink
Merge pull request #287 from MasterDuke17/master
Browse files Browse the repository at this point in the history
Make nqp::nextfiledir have the same output on the jvm as on moar
  • Loading branch information
lizmat committed May 22, 2016
2 parents ca37f08 + d751661 commit 62d0dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -1214,7 +1214,7 @@ public static String nextfiledir(SixModelObject obj, ThreadContext tc) {
IOHandleInstance ioh = (IOHandleInstance)obj;
if (ioh.dirstrm != null && ioh.diri != null) {
if (ioh.diri.hasNext()) {
return ioh.diri.next().toString();
return ioh.diri.next().getFileName().toString();
} else {
return null;
}
Expand Down

0 comments on commit 62d0dba

Please sign in to comment.