Skip to content

Commit b18e89b

Browse files
committed
Update docu
1 parent 595db47 commit b18e89b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

easybuild/tools/filetools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,9 +681,9 @@ def search_file(paths, query, short=False, ignore_dirs=None, silent=False, filen
681681
return var_defs, hits
682682

683683

684-
def dir_contains_files(folder_path):
685-
"""Return true if the given folder does not contain any files"""
686-
return any(files for _root, _dirs, files in os.walk(folder_path))
684+
def dir_contains_files(path):
685+
"""Return True if the given directory does contain any file in itself or any subdirectory"""
686+
return any(files for _root, _dirs, files in os.walk(path))
687687

688688

689689
def find_eb_script(script_name):

0 commit comments

Comments
 (0)