python文件管理

阅读量: searchstar 2021-07-22 14:34:19
Categories: Tags:

用到了如下模块:

import os, shutil

其中shutilshell util的缩写。

os.path.exists

python遍历目录下的所有文件和目录详细介绍

检查文件是不是块设备:https://www.systutorials.com/how-to-check-whether-a-file-of-a-given-path-is-a-block-device-in-python/