Skip to content

Update File.cs - #85648

Merged
adamsitnik merged 1 commit into
dotnet:mainfrom
SiqiLu:patch-1
May 9, 2023
Merged

adamsitnik merged 1 commit into
dotnet:mainfrom
SiqiLu:patch-1

Conversation

@SiqiLu

@SiqiLu SiqiLu commented May 2, 2023

Copy link
Copy Markdown
Contributor

I looked up the documentation (document link: https://learn.microsoft.com/en-us/dotnet/api/system.io.file.exists?view=net-7.0) and it states that "If path describes a directory, this method returns false." Additionally, after testing it myself, I found that the comment here should be corrected.

@ghost ghost added community-contribution Indicates that the PR has been added by a community member area-System.IO labels May 2, 2023
@ghost

ghost commented May 2, 2023

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

Issue Details

I looked up the documentation (document link: https://learn.microsoft.com/en-us/dotnet/api/system.io.file.exists?view=net-7.0) and it states that "If path describes a directory, this method returns false." Additionally, after testing it myself, I found that the comment here should be corrected.

Author: SiqiLu
Assignees: -
Labels:

area-System.IO, community-contribution

Milestone: -

@SiqiLu

SiqiLu commented May 2, 2023

Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree

@adamsitnik

Copy link
Copy Markdown
Member

The failures are unrelated. Thank you for your contribution @SiqiLu !

@adamsitnik
adamsitnik merged commit 8c96a18 into dotnet:main May 9, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.IO community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants