Skip to content

Commit 1ced916

Browse files
authored
Improve DirectoryInfo.GetDirectories exception details (dotnet#8725)
* Improve DirectoryInfo.GetDirectories exception details, fixes dotnet#8544 * Apply suggestions from code review
1 parent dfa19f7 commit 1ced916

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

xml/System.IO/Directory.xml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2405,7 +2405,11 @@ An I/O error occurred.</exception>
24052405
<paramref name="path" /> is <see langword="null" />.</exception>
24062406
<exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception>
24072407
<exception cref="T:System.IO.IOException">
2408-
<paramref name="path" /> is a file name.</exception>
2408+
<paramref name="path" /> is a file name.
2409+
2410+
-or-
2411+
2412+
File or directory is corrupted and unreadable (example: invalid first allocation unit of a FAT32 partition).</exception>
24092413
<exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
24102414
<altmember cref="M:System.IO.Directory.GetCurrentDirectory" />
24112415
<related type="Article" href="/dotnet/standard/io/">File and Stream I/O</related>
@@ -2505,7 +2509,11 @@ An I/O error occurred.</exception>
25052509
<paramref name="path" /> or <paramref name="searchPattern" /> is <see langword="null" />.</exception>
25062510
<exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception>
25072511
<exception cref="T:System.IO.IOException">
2508-
<paramref name="path" /> is a file name.</exception>
2512+
<paramref name="path" /> is a file name.
2513+
2514+
-or-
2515+
2516+
File or directory is corrupted and unreadable (example: invalid first allocation unit of a FAT32 partition).</exception>
25092517
<exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
25102518
<altmember cref="M:System.IO.Directory.GetCurrentDirectory" />
25112519
<related type="Article" href="/dotnet/standard/io/">File and Stream I/O</related>
@@ -2589,7 +2597,11 @@ An I/O error occurred.</exception>
25892597
<paramref name="path" /> or <paramref name="searchPattern" /> is <see langword="null" />.</exception>
25902598
<exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception>
25912599
<exception cref="T:System.IO.IOException">
2592-
<paramref name="path" /> is a file name.</exception>
2600+
<paramref name="path" /> is a file name.
2601+
2602+
-or-
2603+
2604+
File or directory is corrupted and unreadable (example: invalid first allocation unit of a FAT32 partition).</exception>
25932605
<exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
25942606
</Docs>
25952607
</Member>
@@ -2685,7 +2697,11 @@ An I/O error occurred.</exception>
26852697
<exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission.</exception>
26862698
<exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception>
26872699
<exception cref="T:System.IO.IOException">
2688-
<paramref name="path" /> is a file name.</exception>
2700+
<paramref name="path" /> is a file name.
2701+
2702+
-or-
2703+
2704+
File or directory is corrupted and unreadable (example: invalid first allocation unit of a FAT32 partition).</exception>
26892705
<exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive).</exception>
26902706
<altmember cref="M:System.IO.Directory.GetCurrentDirectory" />
26912707
<related type="Article" href="/dotnet/standard/io/">File and Stream I/O</related>

0 commit comments

Comments
 (0)