Skip to content

fix: skip drive root in Windows MakePath#337

Merged
zhourrr merged 1 commit intoalibaba:mainfrom
JalinWang:fix/windows-c-drive-makepath
Apr 14, 2026
Merged

fix: skip drive root in Windows MakePath#337
zhourrr merged 1 commit intoalibaba:mainfrom
JalinWang:fix/windows-c-drive-makepath

Conversation

@JalinWang
Copy link
Copy Markdown
Collaborator

fix: #333
CreateDirectoryA("C:", nullptr) returns ERROR_ACCESS_DENIED on Windows (not ERROR_ALREADY_EXISTS), causing MakePath to fail immediately for any path on the C: drive. Skip the CreateDirectoryA call when the intermediate path is a bare drive root (e.g. "C:").

CreateDirectoryA("C:", nullptr) returns ERROR_ACCESS_DENIED on Windows
(not ERROR_ALREADY_EXISTS), causing MakePath to fail immediately for any
path on the C: drive. Skip the CreateDirectoryA call when the intermediate
path is a bare drive root (e.g. "C:").
@JalinWang JalinWang requested a review from iaojnh as a code owner April 14, 2026 07:14
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@zhourrr zhourrr merged commit 09f93c5 into alibaba:main Apr 14, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot create collection on C: drive on Windows

2 participants