原文:C#判断是否有某文件夹存在

DirectoryInfo directory new DirectoryInfo D: year time.Substring , LocaleId if directory.Exists 不存在 directory.Create ...

2017-01-23 13:15 0 5111 推荐指数:

查看详情

C#判断文件文件夹是否存在

1.判断文件夹是否存在   if (!Directory.Exists(sPath))   {     Directory.CreateDirectory(sPath);   }   //从指定路径中删除空目录。 2.判断文件是否存在 ...

Thu Jan 21 23:58:00 CST 2021 0 3303
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM