Correctly filter . and .. from the file list.

This commit is contained in:
Jesse Ruderman 2012-04-06 19:07:22 -07:00
parent 63942c969d
commit 139420f664

View File

@ -467,7 +467,7 @@ fn list_dir(p: path) -> [str] {
}
rustrt::rust_list_files(star(p)).filter {|filename|
!str::eq(filename, ".") || !str::eq(filename, "..")
!str::eq(filename, ".") && !str::eq(filename, "..")
}
}