summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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