- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 33.3k
 
Open
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
While os.path.exists("") correctly returns False, the same input with Path("").exists() returns True.
>>> from pathlib import Path
>>> import os
>>> Path("").exists()
True
>>> os.path.exists("")
False
>>>CPython versions tested on:
3.13
Operating systems tested on:
Linux
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Todo