kopia lustrzana https://github.com/micropython/micropython-lib
Merge 4d682b3fc8
into 913498ef05
commit
9a98715b8b
|
@ -126,7 +126,7 @@ class Path:
|
|||
for name, mode, *_ in os.ilistdir(path):
|
||||
full_path = path + _SEP + name
|
||||
if name.startswith(prefix) and name.endswith(suffix):
|
||||
yield full_path
|
||||
yield Path(full_path)
|
||||
if recursive and mode & 0x4000: # is_dir
|
||||
yield from self._glob(full_path, pattern, recursive=recursive)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue