Directory.Delete: prefer DirectoryNotFoundException over UnauthorizedAccess IOExcepti...
authorTom Deseyn <tom.deseyn@gmail.com>
Thu, 16 Dec 2021 09:21:53 +0000 (10:21 +0100)
committerGitHub <noreply@github.com>
Thu, 16 Dec 2021 09:21:53 +0000 (10:21 +0100)
commita4f169c09da5b1401fc88cb4eb85841e0a9fe0b5
tree7efe029521989e41d72c9ecc8261fb57227078e0
parent99d82c20269d75e69a60ef4d544ca9d1efd93cb7
Directory.Delete: prefer DirectoryNotFoundException over UnauthorizedAccess IOException. (#62396)

* Directory.Delete: prefer DirectoryNotFoundException over UnauthorizedAccess IOException.

* Refactor error handling.
src/libraries/System.Private.CoreLib/src/System/IO/FileSystem.Unix.cs