Created
March 11, 2024 19:16
-
-
Save agronholm/90306177a8d333d6f872baf8b5083d50 to your computer and use it in GitHub Desktop.
PyPy filename encoding bug MWE
This file contains 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 | |
path = Path("MARKER-ö.txt") | |
path.touch() | |
path2 = next(p for p in Path.cwd().iterdir() if p.name.startswith("MARKER-")) | |
path2.chmod(0o777) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment