This commit is contained in:
Michael Bucari-Tovo 2023-02-07 22:58:29 -07:00
parent e3c9f70dff
commit bb40df5fa3

View File

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