API tweaks to match latest updates to spec (dotnet/corefx#27102)
authorJeremy Kuhne <jeremy.kuhne@microsoft.com>
Wed, 14 Feb 2018 05:49:57 +0000 (21:49 -0800)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2018 05:49:57 +0000 (21:49 -0800)
commit985d730865f6958d8cb8ca9a04ce02fb0c04eabd
tree795bf5cb63f829c031d12a295db3fa253a388d63
parent53cd78bade5d129460954fef23e567491bde973e
API tweaks to match latest updates to spec (dotnet/corefx#27102)

* API tweaks to match latest updates to spec

Add a few new tests

See dotnet/corefx#25873

* Properly clear state when enumerating on Unix.
Make sure we don't include special directories in subdir processing. Add test.
Collapse helper that was only called in one place, and remove dead one.

Commit migrated from https://github.com/dotnet/corefx/commit/1c9cd8118abfa13165d88a4e660fbdcc6c2ebc4c
15 files changed:
src/libraries/System.IO.FileSystem/ref/System.IO.FileSystem.cs
src/libraries/System.IO.FileSystem/src/System.IO.FileSystem.csproj
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEntry.Unix.cs
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerable.cs
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerator.Unix.cs
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerator.Windows.cs
src/libraries/System.IO.FileSystem/src/System/IO/EnumerationOptions.cs [moved from src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/EnumerationOptions.cs with 84% similarity]
src/libraries/System.IO.FileSystem/src/System/IO/MatchCasing.cs [moved from src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/MatchCasing.cs with 95% similarity]
src/libraries/System.IO.FileSystem/src/System/IO/MatchType.cs [moved from src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/MatchType.cs with 94% similarity]
src/libraries/System.IO.FileSystem/src/System/IO/PathHelpers.cs
src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str.cs
src/libraries/System.IO.FileSystem/tests/Enumeration/IncludePredicateTests.netcoreapp.cs [new file with mode: 0644]
src/libraries/System.IO.FileSystem/tests/Enumeration/SkipAttributeTests.netcoreapp.cs
src/libraries/System.IO.FileSystem/tests/Enumeration/SpecialDirectoryTests.netcoreapp.cs
src/libraries/System.IO.FileSystem/tests/System.IO.FileSystem.Tests.csproj