FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

pathlib.Path.unlink raises a `NotADirectoryError` if some element of the path is actually a file - this is undocumented · Issue #119993 · python/cpython · GitHub

/ cpython Public

pathlib.Path.unlink raises a NotADirectoryError if some element of the path is actually a file - this is undocumented #119993

Description

Documentation

https://docs.python.org/3/library/pathlib.html#pathlib.Path.unlink states that a FileNotFoundError will be raised if the path does not exist.
On macos-14 a NotADirectoryError is raised if the directory does not exist.

See pypa/cibuildwheel#1850 for an example.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL