Open etienneschalk opened 6 months ago
In Python 3.12, PurePath.match, Path.glob and Path.rglob now supports a case_sensitivity argument, so that the user have full-control on the behavior of the path matching.
PurePath.match
Path.glob
Path.rglob
case_sensitivity
https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.match
Changed in version 3.12: The case_sensitive parameter was added.
https://docs.python.org/3/library/pathlib.html#pathlib.Path.glob
https://docs.python.org/3/library/pathlib.html#pathlib.Path.rglob
By default, None means "use OS defaults"
None
typically, case-sensitive on POSIX, and case-insensitive on Windows.
Proposal: Since datatree only supports POSIX-paths, the default behaviour in datatree should be case-sensitive.
Sounds good to me!
Motive
In Python 3.12,
PurePath.match
,Path.glob
andPath.rglob
now supports acase_sensitivity
argument, so that the user have full-control on the behavior of the path matching.https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.match
https://docs.python.org/3/library/pathlib.html#pathlib.Path.glob
https://docs.python.org/3/library/pathlib.html#pathlib.Path.rglob
By default,
None
means "use OS defaults"Proposal: Since datatree only supports POSIX-paths, the default behaviour in datatree should be case-sensitive.