Skip to content

Commit 139420f

Browse files
committed
Correctly filter . and .. from the file list.
1 parent 63942c9 commit 139420f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ fn list_dir(p: path) -> [str] {
467467
}
468468

469469
rustrt::rust_list_files(star(p)).filter {|filename|
470-
!str::eq(filename, ".") || !str::eq(filename, "..")
470+
!str::eq(filename, ".") && !str::eq(filename, "..")
471471
}
472472
}
473473

0 commit comments

Comments
 (0)