2018年1月24日

delete the files in subfolders

摘要: http://blog.csdn.net/liuchunming033/article/details/39400931 阅读全文

posted @ 2018-01-24 01:13 cdekelon 阅读(165) 评论(0) 推荐(0) 编辑

shutil.copytree copy all the folders and files

摘要: # http://blog.csdn.net/liuchunming033/article/details/39400931 创建多层新目录: ### 创建多层目录 def mkdirs(path): # 去除首位空格 path=path.strip() # 去除尾部 \ 符号 path=path. 阅读全文

posted @ 2018-01-24 00:13 cdekelon 阅读(382) 评论(0) 推荐(0) 编辑

2018年1月23日

(shell)Show all the files in folders and subfolders

摘要: for d in ./*; do if [ -d "$d" ]; then for e in $d/*;do if [ -d "$e" ]; then find "$e" -type f -print fi done fi done for d in ./*; do if [ -d "$d" ... 阅读全文

posted @ 2018-01-23 17:12 cdekelon 阅读(184) 评论(0) 推荐(0) 编辑

(shell)show all the folders and sub-folders

摘要: # cat bbb-subfolder.sh for d in ./*; do if [ -d "$d" ]; then echo "$d" for e in $d/*;do if [ -d "$e" ]; then echo "$e" fi done fi done 阅读全文

posted @ 2018-01-23 16:46 cdekelon 阅读(191) 评论(0) 推荐(0) 编辑

(shell)show all the files in one path

摘要: # cat aaa-ls.sh yourfilenames=`ls ./*.jpg` for eachfile in $yourfilenames do echo $eachfile done 阅读全文

posted @ 2018-01-23 16:27 cdekelon 阅读(139) 评论(0) 推荐(0) 编辑

os.remove some jpgs

摘要: >>> import os >>> for i in range(1,23): ... os.remove(str(i)+'.jpg') ... ... 阅读全文

posted @ 2018-01-23 15:11 cdekelon 阅读(94) 评论(0) 推荐(0) 编辑

shutil.rmtree, os.path, delete sub-folders, format

摘要: #==== #This script will check how many files in sub-folders. #Will delete the sub-folders if the files are not enough. #==== import os import shutil from os import walk import os.path #mypath='./' ... 阅读全文

posted @ 2018-01-23 14:19 cdekelon 阅读(141) 评论(0) 推荐(0) 编辑

2018年1月22日

How to create folder

摘要: from https://gist.github.com/keithweaver/562d3caa8650eefe7f84fa074e9ca949 阅读全文

posted @ 2018-01-22 15:56 cdekelon 阅读(102) 评论(0) 推荐(0) 编辑

2018年1月17日

valgrind

摘要: Good pdf: https://aleksander.es/data/valgrind-memcheck.pdf FAQ: http://valgrind.org/docs/manual/faq.html#faq.deflost Useful link: http://blog.51cto.co 阅读全文

posted @ 2018-01-17 17:40 cdekelon 阅读(95) 评论(0) 推荐(0) 编辑

gstream

摘要: https://gstreamer.freedesktop.org/documentation/plugins.html 阅读全文

posted @ 2018-01-17 15:39 cdekelon 阅读(205) 评论(0) 推荐(0) 编辑

导航