修复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;
}