Fixing issue 1919. list_dir is the more general version that returns a vector with the contents of the directory. list_dir_path contains the old behavior (as a convenience function).
This commit is contained in:
@@ -69,7 +69,7 @@ fn mk_filesearch(maybe_sysroot: option<path>,
|
||||
fn search<T: copy>(filesearch: filesearch, pick: pick<T>) -> option<T> {
|
||||
for lib_search_path in filesearch.lib_search_paths() {
|
||||
#debug("searching %s", lib_search_path);
|
||||
for path in os::list_dir(lib_search_path) {
|
||||
for path in os::list_dir_path(lib_search_path) {
|
||||
#debug("testing %s", path);
|
||||
let maybe_picked = pick(path);
|
||||
if option::is_some(maybe_picked) {
|
||||
|
||||
Reference in New Issue
Block a user