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);