This commit is contained in:
龙腾猫跃 committed 2026-05-07 07:33:06 +08:00
1 parent c017654b6a
commit 49c2a9c8ff
11 files changed
+161 -154

No files matched your search

+4 -6
View File
@@ -16,16 +16,14 @@ public static class DirectoryUtils {
/// <summary>
/// 判断文件夹是否存在。
/// </summary>
public static bool Exists(string path) {
return Directory.Exists(PathUtils.WithLongPath(path));
}
public static bool Exists(string path)
=> Directory.Exists(PathUtils.WithLongPath(path));
/// <summary>
/// 创建 <see cref="DirectoryInfo"/> 对象。
/// </summary>
public static DirectoryInfo GetInfo(string path) {
return new(PathUtils.WithLongPath(path));
}
public static DirectoryInfo GetInfo(string path)
=> new(PathUtils.WithLongPath(path));
/// <summary>
/// 返回指定路径下的所有文件,不以 \\?\ 开头。