rmellipse.workflows.extras

Functions

matches_any(pattern, globs)

True if pattern matches any of globs

make_globs(directory)

Make include and ignore glob patters from a directory

iter_blobable(dmap)

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_