Wykres commitów

3 Commity (9a98715b8b49118deb606d15c778db81523ecae6)

Autor SHA1 Wiadomość Data
RotatingLlama 4d682b3fc8
Update pathlib.py Path.glob()
Fix glob() to return Path objects rather than bare strings, same as CPython
https://docs.python.org/3/library/pathlib.html#pathlib.Path.glob

Signed-off-by: RotatingLlama <137008229+RotatingLlama@users.noreply.github.com>
2025-06-29 20:19:13 +01:00
Brian Pugh da46c4b9f7 pathlib: Add __rtruediv__ magic method to pathlib.Path.
MicroPython now supports this behaviour of __rtruediv__.
2024-05-24 18:32:25 +10:00
Brian Pugh 0051a5ef50 pathlib: Add initial pathlib implementation.
This adds most of the common functionality of pathlib.Path.

The glob functionality could use some work; currently it only supports a
single "*" wildcard; however, this is the vast majority of common use-cases
and it won't fail silently if non-supported glob patterns are provided.
2022-11-17 14:26:33 +11:00