修复File.Refresh

This commit is contained in:
2025-09-04 16:24:27 +08:00
parent f6384a4a8c
commit 427b916dd2
2 changed files with 7 additions and 1 deletions

View File

@@ -161,9 +161,15 @@ namespace Convention
if (Exists() == false)
OriginInfo = null;
else if (IsDir())
{
OriginInfo = new DirectoryInfo(FullPath);
FullPath = Path.GetFullPath(FullPath);
}
else
{
OriginInfo = new FileInfo(FullPath);
FullPath = Path.GetFullPath(FullPath);
}
return this;
}

View File

@@ -15,7 +15,7 @@ namespace Convention.WindowsUI.Variant
private Dictionary<object, HierarchyItem> AllReferenceItemLinker = new();
/// <summary>
/// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD>tab
///
/// </summary>
/// <param name="reference"></param>
/// <param name="item"></param>