Allow directory not empty errors (dotnet/corefx#24382)
authorJeremy Kuhne <jeremy.kuhne@microsoft.com>
Tue, 3 Oct 2017 16:52:39 +0000 (09:52 -0700)
committerStephen Toub <stoub@microsoft.com>
Tue, 3 Oct 2017 16:52:39 +0000 (12:52 -0400)
commit733ebce7ddf4ce53c7832542c09575492875fbc2
treea5ae384b1244294d0fe3151fe251eb8de35ab7ba
parent495736cd4310f6c71f3c50207dd88fee6d526bf8
Allow directory not empty errors (dotnet/corefx#24382)

If we've successfully removed all of the file content without errors we should allow for directory not empty to allow for active file handles to close.

Commit migrated from https://github.com/dotnet/corefx/commit/e791e8b7a4f1e4d6ff5b4295fad04a6c9f65e909
src/libraries/System.IO.FileSystem/src/System/IO/Win32FileSystem.cs