From bb40df5fa34df0779f94b0555479c8b1de6601c8 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Tue, 7 Feb 2023 22:58:29 -0700 Subject: [PATCH] Fix #478 --- Source/FileManager/LongPath.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/FileManager/LongPath.cs b/Source/FileManager/LongPath.cs index f6f3f8fa..2175681a 100644 --- a/Source/FileManager/LongPath.cs +++ b/Source/FileManager/LongPath.cs @@ -62,10 +62,10 @@ namespace FileManager public static implicit operator LongPath(string path) { - if (!IsWindows) return new LongPath(path); - if (path is null) return null; + if (!IsWindows) return new LongPath(path); + //File I/O functions in the Windows API convert "/" to "\" as part of converting //the name to an NT-style name, except when using the "\\?\" prefix path = path.Replace(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar);