format
This commit is contained in:
1 parent
c017654b6a
commit
49c2a9c8ff
11 files changed
+161
-154
No files matched your search
@@ -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>
|
||||
/// 返回指定路径下的所有文件,不以 \\?\ 开头。
|
||||
|
||||
Reference in new issue
Block a user