删除指定路径文件夹下所有文件 .net
作者:互联网
string filePath = Server.MapPath("~/ImportBaseInfo/");
string[] filePaths = Directory.GetFiles(filePath);
foreach (string filepath in filePaths)
{ File.Delete(filepath); }
灵感来自大佬:https://www.cnblogs.com/hongkun/p/7993619.html
标签:www,string,filePath,路径,filepath,文件夹,filePaths,MapPath,net 来源: https://www.cnblogs.com/zhangbupangpang/p/14391954.html