Skip to main content

normalize_path_patterns

Normalize an iterable of glob style patterns based on OS.

def normalize_path_patterns(
patterns: iterable
) - > list

Normalize an iterable of glob style patterns based on OS.

Parameters

NameTypeDescription
patternsiterableA collection of glob-style strings representing file or directory paths to be standardized.

Returns

TypeDescription
listA list of normalized path patterns with OS-specific casing and trailing directory wildcards removed.