summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorjvoisin2018-04-04 23:18:32 +0200
committerjvoisin2018-04-04 23:18:32 +0200
commitd830760d4f0fb0884490060014b4a73df9e77b3e (patch)
treea412fab6287550fac396c441f1dc776504807021 /main.py
parent972de8469e8827f2c5c1e4350104411e322986e1 (diff)
Oups, fix the build
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.py b/main.py
index 2a2a160..65158e6 100755
--- a/main.py
+++ b/main.py
@@ -1,13 +1,12 @@
1#!/usr/bin/python3 1#!/usr/bin/python3
2 2
3import os 3import os
4import sys
5import mimetypes 4import mimetypes
6from shutil import copyfile
7import argparse 5import argparse
8 6
9from src import parser_factory 7from src import parser_factory
10 8
9
11def __check_file(filename:str, mode:int = os.R_OK) -> bool: 10def __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