Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import os
- >>> class PathLike:
- ... def __fspath__(self):
- ... return 'NO_DIRECTORY'
- ...
- >>> os.stat(PathLike())
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- FileNotFoundError: [Errno 2] No such file or directory: 'NO_DIRECTORY'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement