diff options
| author | jvoisin | 2018-04-04 23:18:32 +0200 |
|---|---|---|
| committer | jvoisin | 2018-04-04 23:18:32 +0200 |
| commit | d830760d4f0fb0884490060014b4a73df9e77b3e (patch) | |
| tree | a412fab6287550fac396c441f1dc776504807021 /main.py | |
| parent | 972de8469e8827f2c5c1e4350104411e322986e1 (diff) | |
Oups, fix the build
Diffstat (limited to 'main.py')
| -rwxr-xr-x | main.py | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -1,13 +1,12 @@ | |||
| 1 | #!/usr/bin/python3 | 1 | #!/usr/bin/python3 |
| 2 | 2 | ||
| 3 | import os | 3 | import os |
| 4 | import sys | ||
| 5 | import mimetypes | 4 | import mimetypes |
| 6 | from shutil import copyfile | ||
| 7 | import argparse | 5 | import argparse |
| 8 | 6 | ||
| 9 | from src import parser_factory | 7 | from src import parser_factory |
| 10 | 8 | ||
| 9 | |||
| 11 | def __check_file(filename:str, mode:int = os.R_OK) -> bool: | 10 | def __check_file(filename:str, mode:int = os.R_OK) -> bool: |
| 12 | if not os.path.isfile(filename): | 11 | if not os.path.isfile(filename): |
| 13 | print("[-] %s is not a regular file." % filename) | 12 | print("[-] %s is not a regular file." % filename) |
| @@ -83,10 +82,10 @@ def main(): | |||
| 83 | return | 82 | return |
| 84 | 83 | ||
| 85 | if args.show: | 84 | if args.show: |
| 86 | for f in get_files_recursively(args.files): | 85 | for f in __get_files_recursively(args.files): |
| 87 | show_meta(f) | 86 | show_meta(f) |
| 88 | else: | 87 | else: |
| 89 | for f in get_files_recursively(args.files): | 88 | for f in __get_files_recursively(args.files): |
| 90 | clean_meta(f) | 89 | clean_meta(f) |
| 91 | 90 | ||
| 92 | 91 | ||
