*
This commit is contained in:
1 parent
888415867a
commit
3fe3412410
2 files changed
+2
-1
No files matched your search
@@ -32,6 +32,7 @@ public static class DirectoryUtils {
|
||||
|
||||
/// <summary>
|
||||
/// 返回指定路径下的所有文件夹。
|
||||
/// 路径不以分隔符结尾。
|
||||
/// </summary>
|
||||
public static IEnumerable<string> EnumerateDirectories(string path, string searchPattern = "*", bool topDirectoryOnly = false) {
|
||||
if (!Exists(path)) return [];
|
||||
|
||||
Reference in new issue
Block a user