Correctly filter . and .. from the file list.
This commit is contained in:
parent
63942c969d
commit
139420f664
@ -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, "..")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user