From 9f985b71d25bf50bff260401a68c933f25934f43 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 13 Nov 2025 04:31:43 +0000 Subject: [PATCH 1/2] Initial plan From 90c738911f6c0a349b159986740b778a54b3acbf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 13 Nov 2025 04:59:00 +0000 Subject: [PATCH 2/2] Add ERROR_NETNAME_DELETED to IsPathUnreachableError condition Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com> --- src/libraries/Common/src/Interop/Windows/Interop.Errors.cs | 1 + .../Common/src/System/IO/FileSystem.Attributes.Windows.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libraries/Common/src/Interop/Windows/Interop.Errors.cs b/src/libraries/Common/src/Interop/Windows/Interop.Errors.cs index 61dea5abb10c06..eaf55beacfde63 100644 --- a/src/libraries/Common/src/Interop/Windows/Interop.Errors.cs +++ b/src/libraries/Common/src/Interop/Windows/Interop.Errors.cs @@ -26,6 +26,7 @@ internal static partial class Errors internal const int ERROR_HANDLE_EOF = 0x26; internal const int ERROR_NOT_SUPPORTED = 0x32; internal const int ERROR_BAD_NETPATH = 0x35; + internal const int ERROR_NETNAME_DELETED = 0x40; internal const int ERROR_NETWORK_ACCESS_DENIED = 0x41; internal const int ERROR_BAD_NET_NAME = 0x43; internal const int ERROR_FILE_EXISTS = 0x50; diff --git a/src/libraries/Common/src/System/IO/FileSystem.Attributes.Windows.cs b/src/libraries/Common/src/System/IO/FileSystem.Attributes.Windows.cs index 9fb1d35d5b4168..bc2eb98046c0ce 100644 --- a/src/libraries/Common/src/System/IO/FileSystem.Attributes.Windows.cs +++ b/src/libraries/Common/src/System/IO/FileSystem.Attributes.Windows.cs @@ -121,6 +121,7 @@ Interop.Errors.ERROR_INVALID_NAME or Interop.Errors.ERROR_BAD_PATHNAME or Interop.Errors.ERROR_BAD_NETPATH or Interop.Errors.ERROR_BAD_NET_NAME or + Interop.Errors.ERROR_NETNAME_DELETED or Interop.Errors.ERROR_INVALID_PARAMETER or Interop.Errors.ERROR_NETWORK_UNREACHABLE or Interop.Errors.ERROR_NETWORK_ACCESS_DENIED or