Skip to content

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

Description

@peteraritchie

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions