Fix #478
This commit is contained in:
parent
e3c9f70dff
commit
bb40df5fa3
@ -62,10 +62,10 @@ namespace FileManager
|
|||||||
|
|
||||||
public static implicit operator LongPath(string path)
|
public static implicit operator LongPath(string path)
|
||||||
{
|
{
|
||||||
if (!IsWindows) return new LongPath(path);
|
|
||||||
|
|
||||||
if (path is null) return null;
|
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
|
//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
|
//the name to an NT-style name, except when using the "\\?\" prefix
|
||||||
path = path.Replace(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar);
|
path = path.Replace(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user