Skip to content

Update DirectoryInfo and FileInfo Create, Delete and Exists changed behavior #4061

Open

Description

@carlossanlop

Make sure documentation matches new behaviors merged into these two PRs where Invalidate() is called, and mention it's a breaking change where appropriate:

dotnet/corefx#40677
dotnet/runtime#34229

Activity

  1. added
    doc-enhancement
    doc-update
    help wanted
    easy
    on Apr 1, 2020
  2. added
    untriaged
    on Apr 1, 2020
  3. added
    Pri3
    on Nov 11, 2020
  4. dangarharshil11 commented on Oct 5, 2026

    @dangarharshil11

    I'd like to work on this. I plan to update the remarks for FileInfo.Create/Delete/Exists and DirectoryInfo.Create/Delete/Exists to say that in .NET 5+ these methods refresh cached state, and to note the difference from .NET Framework

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3area-System.IOdoc-enhancementdoc-updateeasyhelp wanteduntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions