GetStableHashCode、DES 加解密
This commit is contained in:
1 parent
3d91c024e2
commit
19541cecce
5 files changed
+109
-31
No files matched your search
@@ -63,7 +63,7 @@ public static class PathUtils {
|
||||
if (path.StartsWithF(@"\\?\")) return path; // 已经是长路径
|
||||
path = RemoveSlashSuffix(path).Replace('/', '\\'); // API 要求这个格式……
|
||||
if (path.StartsWithF(@"\\")) {
|
||||
return $@"\\?\UNC\{path.Substring(2)}";
|
||||
return $@"\\?\UNC\{path[2..]}";
|
||||
} else {
|
||||
return $@"\\?\{path}";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user