-
Notifications
You must be signed in to change notification settings - Fork 1.6k
AppendText() and CreateText() throw DirectoryNotFoundException #7063
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
base: main
Are you sure you want to change the base?
Conversation
Both methods throw the exception if the directory of the file being written to doesn't exist.
Tagging subscribers to this area: @carlossanlop Issue DetailsBoth methods throw the exception if the directory of the file being written to doesn't exist. SummaryAdded DirectoryNotFoundException to list of exceptions thrown for CreateText and AppendText. Pulled description text from OpenWrite. Fixes #Issue_Number (if available)
|
Docs Build status updates of commit a338232: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think my suggestion adds some clarity.
@@ -277,6 +277,7 @@ C:\Users\userName\AppData\Local\Temp\tmp70CB.tmp was successfully deleted. | |||
|
|||
]]></format> | |||
</remarks> | |||
<exception cref="T:System.IO.DirectoryNotFoundException">The path specified when creating an instance of the <see cref="T:System.IO.FileInfo" /> object is invalid, such as being on an unmapped drive.</exception> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<exception cref="T:System.IO.DirectoryNotFoundException">The path specified when creating an instance of the <see cref="T:System.IO.FileInfo" /> object is invalid, such as being on an unmapped drive.</exception> | |
<exception cref="T:System.IO.DirectoryNotFoundException">The path specified when the instance of the <see cref="T:System.IO.FileInfo" /> object was created is invalid, such as being on an unmapped drive.</exception> |
@@ -612,6 +613,7 @@ C:\Users\userName\AppData\Local\Temp\tmp70CB.tmp was successfully deleted. | |||
]]></format> | |||
</remarks> | |||
<exception cref="T:System.UnauthorizedAccessException">The file name is a directory.</exception> | |||
<exception cref="T:System.IO.DirectoryNotFoundException">The path specified when creating an instance of the <see cref="T:System.IO.FileInfo" /> object is invalid, such as being on an unmapped drive.</exception> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<exception cref="T:System.IO.DirectoryNotFoundException">The path specified when creating an instance of the <see cref="T:System.IO.FileInfo" /> object is invalid, such as being on an unmapped drive.</exception> | |
<exception cref="T:System.IO.DirectoryNotFoundException">The path specified when the instance of the <see cref="T:System.IO.FileInfo" /> object was created is invalid, such as being on an unmapped drive.</exception> |
Learn Build status updates of commit a338232: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
Both methods throw the exception if the directory of the file being written to doesn't exist.
Summary
Added DirectoryNotFoundException to list of exceptions thrown for CreateText and AppendText. Pulled description text from OpenWrite.
Fixes #Issue_Number (if available)