gh-102765: Updated isdir/isfile/islink/exists to use Py_GetFileInformationByName in ntpath when available by finnagin · Pull Request #103485 · python/cpython · GitHub

github.com

Tin mới

finnagin:gh-102765

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Improve performance of ntpath.isdir/isfile/exists/islink #102765

: added _Py_GetFileInformationByName to isdir

Merge branch 'python:main' into

enable actions workflows for branch

: add missing curly brace, fix whitespace

: added _Py_GetFileInformationByName to exists & isfile

: added _Py_GetFileInformationByName to islink, altere…

fix whitespace, remove unneeded comments

added result for slow_path excluding errors

skip isdir/isfile slow path if not a dir/file

Merge branch 'python:main' into

Merge branch 'python:main' into

remove extra close_file

merge python:main into 102765

merge python:main into 102765

merge python:main into 102765

merge python:main into 102765

change path -> _path.wide

merge python:main into 102765

merge python:main into 102765

merge python:main into 102765

merge python:main into 102765

revert branch addition in actions workflow

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

highlighted this way

I highlighted this case since it was also highlighted this way were Py_GetFileInformationByName was called in the win32 xstat implementation earlier in the file. Would it be better to alter this comment to say something

merge python:main into 102765

Excluded additional errors from slow fallback path

Disable slow path in islink on any successful GetFileInformationByNam…

move error switch into static inline function