Created
June 3, 2024 04:44
-
-
Save webgtx/b82b1b2e02b8b82ac0da1c645d5faa95 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
generator = Path().iterdir() | |
print(generator) # generatorx98e1c | |
print(sorted(generator)) # [PurePath(".bashrc"), PurePath(".vimrc")] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment