Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider checking for error upon subdirectory creation in Directory.CreateDirectory #96

Open
peteraritchie opened this issue Dec 16, 2022 · 0 comments

Comments

@peteraritchie
Copy link
Owner

In Directory.CreateDirectory, a directory may exist but may not be visible to the current user and incorrectly get flagged for creation. While creating that subdir in this scenario, we should check for an error and not let it leak out if the directory exists. See also https://github.com/dotnet/runtime/blob/main/src/libraries/Common/src/System/IO/FileSystem.DirectoryCreation.Windows.cs#L78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant