1. def removeDir(dirPath):
  2. '''
  3. Created by Wu Yongcong 2017-8-18
  4. :param dirPath:
  5. :return:
  6. '''
  7. if not os.path.exists(dirPath):
  8. raise FileException("input error!not exist dirPath")
  9. else:
  10. shutil.rmtree(dirPath)
  11. def mkdirPath(dirPath):
  12. '''
  13. :param dirPath:
  14. :return:
  15. Created by Wu Yongcong 2017-8-18
  16. 递归创建输入的路径下面的文件夹或文件
  17. '''
  18. if os.path.exists(dirPath):
  19. raise FileException("input error!the dirPath is exist")
  20. else:
  21. os.makedirs(dirPath)

最新文章

  1. android_demo之生成颜色布局
  2. dede去掉当前位置position后面的箭头
  3. Servlet Threading Model
  4. windows下 tomcat7 配置成服务
  5. hdu 5392 Infoplane in Tina Town(数学)
  6. 51操作各种demo 驱动
  7. VS关闭Browser Link
  8. 分享到QQ空间、新浪微博、腾讯微博和人人网
  9. iOS多线程——GCD与NSOperation总结
  10. ubuntu14.04上实现faster rcnn_TF的demo程序及训练过程
  11. 【Docker】基础学习及在.Net Core应用
  12. PyInstaller安装使用方法
  13. 巧用string中的contains巧解一道题目
  14. wqCms6.0在IIS6的Getshell
  15. 《剑指offer》第五十九题(队列的最大值)
  16. Linux内核学习笔记二——进程
  17. 论Ubuntu下的docker多难搭建
  18. PL/SQL Developer 导出csv文件,用excel打开中文显示乱码
  19. 29. What Makes a True Leader ? 合格的领导者由何物决定 ?
  20. poj3624 Charm Bracelet

热门文章

  1. python控制流-名词解释
  2. 红帽学习笔记[RHCSA] 第七课[网络配置相关]
  3. linux最强编辑神器vim常用命令大全:编辑、插入、删除、替换、保存...
  4. linux上执行mysql的脚本文件
  5. C++代码审查
  6. [多校联考2019(Round 5 T2)]蓝精灵的请求(二分图染色+背包)
  7. if练习
  8. HNUSTOJ-1253 Babelfish(字典树)
  9. [pwnable.kr] - wtf
  10. 剑指offer-顺序打印二叉树节点(系列)-树-python