Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions xml/System.IO/EnumerationOptions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,22 @@ The suggested buffer size will not be used if it has no meaning for the native A

## Remarks

For APIs that allow specifying a match expression, this property allows you to specify the case matching behavior.
The default is to match platform defaults, which are gleaned from the case sensitivity of the temporary folder.
This property controls **case matching for file name patterns only**.
It **does not affect directory path resolution**. On case-sensitive file systems
(such as Linux and macOS), directory paths must match the exact casing regardless of this setting.

The default is to match the platform defaults, which are based on the case sensitivity of the filesystem.

]]></format>
</remarks>
</remarks>
<example>
<format type="text/markdown"><![CDATA[
Directory.GetFiles("/tmp/data", "*.TXT",
new EnumerationOptions { MatchCasing = MatchCasing.CaseInsensitive });

> Matches file names case-insensitively, but `/tmp/data` directory path must still match exact casing on Linux/macOS.
]]></format>
</example>
</Docs>
</Member>
<Member MemberName="MatchType">
Expand Down
Loading