Title: pathlib.Path.unlink raises a `NotADirectoryError` if some element of the path is actually a file - this is undocumented · Issue #119993 · python/cpython · GitHub
Open Graph Title: pathlib.Path.unlink raises a `NotADirectoryError` if some element of the path is actually a file - this is undocumented · Issue #119993 · python/cpython
X Title: pathlib.Path.unlink raises a `NotADirectoryError` if some element of the path is actually a file - this is undocumented · Issue #119993 · python/cpython
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 p...
Open Graph 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 raise...
X 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 raise...
Opengraph URL: https://github.com/python/cpython/issues/119993
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pathlib.Path.unlink raises a `NotADirectoryError` if some element of the path is actually a file - this is undocumented","articleBody":"# Documentation\r\n\r\nhttps://docs.python.org/3/library/pathlib.html#pathlib.Path.unlink states that a `FileNotFoundError` will be raised if the path does not exist.\r\nOn macos-14 a `NotADirectoryError` is raised if the directory does not exist.\r\n\r\nSee pypa/cibuildwheel#1850 for an example.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-120049\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/MusicalNinjaDad","@type":"Person","name":"MusicalNinjaDad"},"datePublished":"2024-06-03T17:52:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/119993/cpython/issues/119993"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bc8b77f1-cbeb-1c5d-7756-fbe97332a9b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AEC:2780A3:25E3EFC:33B4A1B:696AC8D0 |
| html-safe-nonce | e9b3297938d0cf97f8ffa1734298c216d07e0425bf92d7efd5a2e03962574c72 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUVDOjI3ODBBMzoyNUUzRUZDOjMzQjRBMUI6Njk2QUM4RDAiLCJ2aXNpdG9yX2lkIjoiMTAyMTUzMDA5ODc4NDQ1NDg2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 22912a7ad0cce7f30ba47e9c05d5953b3daa6597db0666c9d6561ffe629d1669 |
| hovercard-subject-tag | issue:2331724722 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/119993/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f6f14c0d1af65dec2f03798331911f0cae780d15a1c4ed12aab08b666352cefc/python/cpython/issues/119993 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f6f14c0d1af65dec2f03798331911f0cae780d15a1c4ed12aab08b666352cefc/python/cpython/issues/119993 |
| og:image:alt | 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 raise... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MusicalNinjaDad |
| hostname | github.com |
| expected-hostname | github.com |
| None | c785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c718a376fcf780eb22089171adb84a543f660bf7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width