ref: DirectoryInfo、FileInfo

This commit is contained in:
龙腾猫跃 committed 2026-05-04 07:39:31 +08:00
1 parent 44d59806ee
commit 9bfa70dc8d
2 files changed
+10

No files matched your search

+5
View File
@@ -15,4 +15,9 @@ public static class DirectoryUtils {
/// </summary>
public static bool Exists(string path) => Directory.Exists(PathUtils.ToLongPath(path));
/// <summary>
/// 创建 <see cref="DirectoryInfo"/> 对象。
/// </summary>
public static DirectoryInfo GetInfo(string path) => new(PathUtils.ToLongPath(path));
}