rmellipse.workflows.extras¶
Functions¶
|
True if pattern matches any of globs |
|
Make include and ignore glob patters from a directory |
|
Iterate over a mapping and yield globable files. |
Module Contents¶
- rmellipse.workflows.extras.matches_any(pattern: str, globs: list[str])¶
True if pattern matches any of globs
- rmellipse.workflows.extras.make_globs(directory: pathlib.Path)¶
Make include and ignore glob patters from a directory
Used .gitignore and .rmeinclude files in directory.
- Parameters:
- directoryPath
Directory to look inside.
- Returns:
- tuple[list[str]]
tuple of list of glob patterns, (ignore, include)
- rmellipse.workflows.extras.iter_blobable(dmap: dict)¶
Iterate over a mapping and yield globable files.
- Parameters:
- dmapdict
Dictionary that maps a directory or item.
- Yields:
- _type_
_description_