空港防疫算法交互
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
354B

  1. # -*- coding: utf-8 -*-
  2. import os
  3. from loguru import logger
  4. '''
  5. 文件处理工具类
  6. '''
  7. def create_dir_not_exist(path):
  8. logger.info("检查文件夹是否存在: {}", path)
  9. if not os.path.exists(path):
  10. logger.info("开始创建文件夹: {}", path)
  11. os.makedirs(path)
  12. logger.info("文件夹创建完成 {}", path)