get_paths_with_common_start

PlasmaCalcs.tools.os_tools.get_paths_with_common_start(common_start, dir='.', *, exclude_if=None)

return list of abspaths to paths in dir which start with common_start.

common_start: str
if abspath, compare to abspaths from dir, else compare to relpaths from dir.
exclude_if: None or callable
if provided, exclude any paths for which exclude_if(path). (using path=abspath)