From dce6851d376c8ecdb7248b40b6c05f98aeee4297 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 1 Jan 2019 11:25:40 +0100 Subject: [PATCH] Renamed 'is_accessible_dir' to 'can_access_dir' This is to be consistent with the 'can_access' function already present in the module. --- lib/spack/llnl/util/filesystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py index 6f5e5c800d7..8ad592f5223 100644 --- a/lib/spack/llnl/util/filesystem.py +++ b/lib/spack/llnl/util/filesystem.py @@ -1354,7 +1354,7 @@ def find_libraries(libraries, root, shared=True, recursive=False): @memoized -def is_accessible_dir(path): +def can_access_dir(path): """Returns True if the argument is an accessible directory. Args: @@ -1379,7 +1379,7 @@ def files_in(*search_paths): List of (file, full_path) tuples with all the files found. """ files = [] - for d in filter(is_accessible_dir, search_paths): + for d in filter(can_access_dir, search_paths): files.extend(filter( lambda x: os.path.isfile(x[1]), [(f, os.path.join(d, f)) for f in os.listdir(d)]