co3.util.paths module¶
- co3.util.paths.iter_glob_paths(_glob, path, no_dir=False, relative=False)[source]¶
wc_glob should ignore hidden files and directories by default; ** only matches non-hidden directories/files, * only non-hidden files.
- Note: Pattern quirks
Under wc_glob, ** (when GLOBSTAR enabled) will match all files and directories, recursively. Contrast this with Path.rglob(‘**’), which matches just directories. For wcmatch, use **/ to recover the directory-only behavior.
- Note: pattern behavior
*: all files and dirs, non-recursive
**: all files and dirs, recursive
*/: all dirs, non-recursive
**/: all dirs, recursive
All file (no dir) equivalents: either of the first two, with no_dir=True