Correctly filter . and .. from the file list.
This commit is contained in:
parent
63942c969d
commit
139420f664
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue