Handle errors getting state in Unix (dotnet/corefx#27239)
authorJeremy Kuhne <jeremy.kuhne@microsoft.com>
Tue, 20 Feb 2018 05:01:21 +0000 (21:01 -0800)
committerGitHub <noreply@github.com>
Tue, 20 Feb 2018 05:01:21 +0000 (21:01 -0800)
commit2302d48348994fd1bcfc52bdab4eceb324552fc2
tree3a8d3839f96807c6bf4a273d2ed5567aaf2274a0
parentbb514bc5ee37d94a72f20d4c996f62191274ec81
Handle errors getting state in Unix (dotnet/corefx#27239)

* Handle errors getting state in Unix

Throwing errors while examining extended state while enumerating isn't consistent with Windows behavior. Windows never throws past getting directory entry data as all state is already available.

Ensure entry attribute state is consistent with initial construction.

* Win 7 CI machines are also setting NotContentIndexed.

Commit migrated from https://github.com/dotnet/corefx/commit/597f44c5056badfb47f45731480454d698849800
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEntry.Unix.cs
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerator.Unix.cs
src/libraries/System.IO.FileSystem/src/System/IO/FileStatus.Unix.cs
src/libraries/System.IO.FileSystem/tests/Enumeration/AttributeTests.netcoreapp.cs [new file with mode: 0644]
src/libraries/System.IO.FileSystem/tests/System.IO.FileSystem.Tests.csproj