工业物联网集成了微电子计算技术、通信技术、云平台、大数据技术以及工业生产运营技术,是未来物联网运用最重要的方向。
作者:KingKa Wu 欢迎任何形式的转载,但请务必注明出处。 限于本人水平,如果文章和代码有表述不当之处,还请不吝赐教。
  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)
posted on 2017-08-17 16:41  KingKa_Wu  阅读(1236)  评论(0编辑  收藏  举报