![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ubuntu
yliu.yb
.
展开
-
ubuntu c++ 获得主目录以及子目录下所有文件
#include <glob.h> #include <vector> #include<string> #include <sys/stat.h> using namespace std; int judge(string path) { struct stat s; if (stat(path.c_str(), &s) == 0) { if(s.st_mode & S_IFDIR)原创 2021-12-09 16:13:17 · 901 阅读 · 0 评论 -
ubuntu python unzip主目录以及子目录
# 解压主目录以及子目录下zip文件到各自目录,并删除zip import os dir_name = "/home/data/" def unzipAllFiles(dir_name): listOfFile = os.listdir(dir_name) allFiles = list() for entry in listOfFile: fullPath = os.path.join(dir_name, entry) if os.path.isdi原创 2021-12-09 16:08:46 · 1034 阅读 · 0 评论