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:
Jonathan Sternberg
2012-04-01 11:39:17 -04:00
parent 0904f25507
commit 3a0477c398
5 changed files with 31 additions and 20 deletions

View File

@@ -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) {