diff options
| -rwxr-xr-x | mat | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -128,7 +128,13 @@ def main(): | |||
| 128 | else: # clean the file | 128 | else: # clean the file |
| 129 | func = clean_meta | 129 | func = clean_meta |
| 130 | 130 | ||
| 131 | for filename in filenames: | 131 | while filenames: |
| 132 | filename = filenames.pop() | ||
| 133 | if os.path.isdir(filename): | ||
| 134 | for root, sub, files in os.walk(filename): | ||
| 135 | for file in files: | ||
| 136 | filenames.append(os.path.join(root, file)) | ||
| 137 | |||
| 132 | class_file = mat.create_class_file(filename, args.backup, | 138 | class_file = mat.create_class_file(filename, args.backup, |
| 133 | add2archive=args.add2archive, low_pdf_quality=args.low_pdf_quality) | 139 | add2archive=args.add2archive, low_pdf_quality=args.low_pdf_quality) |
| 134 | if class_file: | 140 | if class_file: |
