1 Star 0 Fork 0

beyondme121/pdf-extractor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
utils.py 356 Bytes
一键复制 编辑 原始数据 按行查看 历史
beyondme121 提交于 2022-08-10 11:57 +08:00 . first commit
import os
# 判断文件路径是否存在,如果不存在就创建
def create_file_path_not_exists(file_path):
file_dir_path = os.path.dirname(file_path)
if not os.path.exists(file_dir_path):
print('文件所在路径不存在,系统自动创建路径')
os.makedirs(file_dir_path)
return False
else:
return True
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/sanfeng8848/pdf-extractor.git
[email protected]:sanfeng8848/pdf-extractor.git
sanfeng8848
pdf-extractor
pdf-extractor
main

搜索帮助