Fix #478
This commit is contained in:
parent
e3c9f70dff
commit
bb40df5fa3
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue