修复Files APP的一个bug

This commit is contained in:
2026-03-24 19:03:05 +08:00
parent d044e97cea
commit 4dd47bfe22
4 changed files with 94 additions and 3 deletions

View File

@@ -50,6 +50,11 @@ namespace CMLeonOS.Utils
rest = rest.TrimEnd('/');
rest = rest.TrimEnd('\\');
if (hasDrive && string.IsNullOrWhiteSpace(rest))
{
return drive + @"\";
}
return drive + rest;
}