private static void CopyEntireDir(string sourcePath, string destPath)
{
foreach (string dirPath in Directory.GetDirectories(sourcePath, "*", SearchOption.AllDirectories))
{
Directory.CreateDirectory(dirPath.Replace(sourcePath, destPath));
}
foreach (string newPath in Directory.GetFiles(sourcePath, "*.*", SearchOption.AllDirectories))
{
File.Copy(newPath, newPath.Replace(sourcePath, destPath), true);
}
}

最新文章

  1. sql中 in , not in , exists , not exists效率分析
  2. 新手学Android
  3. Chapter 6面向对象
  4. QTreeWidget实现动态加载本地文件系统
  5. YII 小部件实现的注册表
  6. 最近 弄了一个 discuz 7.2,管理员发帖 会出现 很多错误,解决 办法 在别的帖子中找到了
  7. android假设重写onDraw实现一个相似TextView能够显示表情和链接的控件(一)
  8. nginx.conf 文中描述的配置文件
  9. Node.js:url
  10. 在wamp下使用netbeans开启Xdbug
  11. mysql 合并left join 数据条目
  12. python logging method 02
  13. Nuget 多平台多目标快速自动打包
  14. css实现弹出框
  15. Centos 7 squid 用户认证
  16. GIT和SVN版本控制
  17. Linux驱动之平台设备驱动模型简析(驱动分离分层概念的建立)
  18. Spring(十四):使用FactoryBean配置Bean
  19. 用Visual C#创建Windows服务程序
  20. Python3编程技巧

热门文章

  1. 程序员offer沟通的4个基本原则
  2. ElasticSearch 时间格式
  3. 如何入侵SF服务器/充当GM刷元宝
  4. 由于ie浏览器ajax缓存 导致layui table表格重载失败的解决办法
  5. Android 上下文菜单 ContextMenu
  6. deinit 没执行
  7. SpringBoot系列-整合Mybatis(XML配置方式)
  8. C#线程学习笔记一:线程基础
  9. markdown简单使用
  10. vue-cli3配置webpack-bundle-analyzer插件