假如 path 下有 1 个文件,2 个文件夹。
Directory.GetFiles(path) Directory.GetFileSystemEntries(path)
Directory.GetFiles(path) 返回 1。
Directory.GetFileSystemEntries(path) 返回 3。
即 GetFiles 仅包含文件,GetFileSystemEntries 包含文件和文件夹。
创建于2005年 渝ICP备05010272号-1
电邮:cftea@126.com