diff --git a/Shared/Utils/DirectoryUtils.cs b/Shared/Utils/DirectoryUtils.cs
index 28ad04b..fdd24c7 100644
--- a/Shared/Utils/DirectoryUtils.cs
+++ b/Shared/Utils/DirectoryUtils.cs
@@ -15,4 +15,9 @@ public static class DirectoryUtils {
///
public static bool Exists(string path) => Directory.Exists(PathUtils.ToLongPath(path));
+ ///
+ /// 创建 对象。
+ ///
+ public static DirectoryInfo GetInfo(string path) => new(PathUtils.ToLongPath(path));
+
}
diff --git a/Shared/Utils/FileUtils.cs b/Shared/Utils/FileUtils.cs
index ad723ee..76fe8db 100644
--- a/Shared/Utils/FileUtils.cs
+++ b/Shared/Utils/FileUtils.cs
@@ -45,4 +45,9 @@ public static class FileUtils {
///
public static bool Exists(string filePath) => File.Exists(PathUtils.ToLongPath(filePath));
+ ///
+ /// 创建 对象。
+ ///
+ public static FileInfo GetInfo(string path) => new(PathUtils.ToLongPath(path));
+
}