From 8052e3c179e761ab395b2f10e1aa649daaed5707 Mon Sep 17 00:00:00 2001 From: BecoKo Date: Sun, 29 Dec 2024 13:50:31 +0200 Subject: [PATCH 1/4] Update ntpath.py - WinFSP giving WinError 1005 - The volume does not contain a recognized file system Make os.path.realpath to ignore WinError 1005 in non-strict mode. Issue: https://github.com/cryptomator/cryptomator/issues/2359 --- Lib/ntpath.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 5481bb8888ef59..52ff2af743af6c 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -661,9 +661,10 @@ def _getfinalpathname_nonstrict(path): # 87: ERROR_INVALID_PARAMETER # 123: ERROR_INVALID_NAME # 161: ERROR_BAD_PATHNAME + # 1005: ERROR_UNRECOGNIZED_VOLUME # 1920: ERROR_CANT_ACCESS_FILE # 1921: ERROR_CANT_RESOLVE_FILENAME (implies unfollowable symlink) - allowed_winerror = 1, 2, 3, 5, 21, 32, 50, 53, 65, 67, 87, 123, 161, 1920, 1921 + allowed_winerror = 1, 2, 3, 5, 21, 32, 50, 53, 65, 67, 87, 123, 161, 1005, 1920, 1921 # Non-strict algorithm is to find as much of the target directory # as we can and join the rest. From 4005fd9eb8fac1048b87d6b8efebc94a71c4c2bb Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 19 May 2025 03:02:05 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst diff --git a/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst b/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst new file mode 100644 index 00000000000000..34a6bd97b408c8 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst @@ -0,0 +1 @@ +Make :meth:`os.path.realpath` ignore Windows error 1005 when in non-strict mode From c9d62404022e3a69bcac9f287dc1f53d9ee4ff84 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 19 May 2025 12:00:41 +0300 Subject: [PATCH 3/4] Update 2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst --- .../next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst b/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst index 34a6bd97b408c8..e2267b90db75f5 100644 --- a/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst +++ b/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst @@ -1 +1 @@ -Make :meth:`os.path.realpath` ignore Windows error 1005 when in non-strict mode +Make :meth:`os.path.realpath` ignore Windows error 1005 when in non-strict mode. From 734c0d87c827cce1a0ca4d80ba3d63f0b88eba11 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 19 May 2025 12:01:04 +0300 Subject: [PATCH 4/4] Update 2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst --- .../next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst b/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst index e2267b90db75f5..958f4f4a4408f7 100644 --- a/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst +++ b/Misc/NEWS.d/next/Windows/2025-05-19-03-02-04.gh-issue-76023.vHOf6M.rst @@ -1 +1 @@ -Make :meth:`os.path.realpath` ignore Windows error 1005 when in non-strict mode. +Make :func:`os.path.realpath` ignore Windows error 1005 when in non-strict mode.