for f in files: fullpath = os.path.join(root, f). try: if os.path.getsize(fullpath) < 10 * 1024: #set file size in kb. print fullpath. os.remove(fullpath).
確定! 回上一頁