摘要:
file_names = fnmatch.filter(os.listdir(folder), '*.jpeg') # take care of folder sequence, 1.jpeg, 2.jpeg, 3.jpeg coll.sort(key=lambda x:int(x[:-5])) o 阅读全文
摘要:
du -sh file_path Explanation du (disc usage) command estimates file_path space usage The options -sh are (from man du): -s, --summarize display only a 阅读全文