Skip to content

Commit 3c5c369

Browse files
committed
Normalize paths to use OS specific separators.
1 parent e8ff284 commit 3c5c369

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/fsutil/operations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,8 @@ def _search_paths(path: PathIn, pattern: str) -> list[str]:
517517
assert_dir(path)
518518
pathname = os.path.join(path, pattern)
519519
paths = glob.glob(pathname, recursive=True)
520+
# normalize paths to use OS-specific separators
521+
paths = [os.path.normpath(path_result) for path_result in paths]
520522
return paths
521523

522524

0 commit comments

Comments
 (0)