From 4c7c213c9b3fa2ce582babf927665e9767056701 Mon Sep 17 00:00:00 2001 From: Yuman Hordijk Date: Thu, 5 Dec 2024 15:15:53 +0100 Subject: [PATCH] [#330] Added the `sort_by` kwarg to the `pathfunc.match` function --- src/tcutility/pathfunc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcutility/pathfunc.py b/src/tcutility/pathfunc.py index d7bf6853..1a621731 100644 --- a/src/tcutility/pathfunc.py +++ b/src/tcutility/pathfunc.py @@ -101,7 +101,7 @@ def get_subdirectories(root: str, include_intermediates: bool = False) -> List[s return subdirs -def match(root: str, pattern: str) -> Dict[str, dict]: +def match(root: str, pattern: str, sort_by: str = None) -> Dict[str, dict]: """ Find and return information about subdirectories of a root that match a given pattern.