feat: DirectoryUtils.Exists、FileUtils.Delete
This commit is contained in:
1 parent
05d8a64362
commit
680cc61869
2 files changed
+10
No files matched your search
@@ -10,4 +10,9 @@ public static class DirectoryUtils {
|
||||
Directory.CreateDirectory(PathUtils.ToLongPath(path));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 判断文件夹是否存在。
|
||||
/// </summary>
|
||||
public static bool Exists(string path) => Directory.Exists(PathUtils.ToLongPath(path));
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user