diff --git a/play_with_os/os_play.py b/play_with_os/os_play.py index 4ef2961..83cd959 100755 --- a/play_with_os/os_play.py +++ b/play_with_os/os_play.py @@ -1,12 +1,12 @@ #! /usr/bin/env python3 import os, sys -def show_all_files_directory(dir_path = str, search_endung = False, search_string = False): +def show_all_files_directory(dir_path = str, search_endung = False, search_string = False, exclude_folder = "glob"): li_all = [] for (root_folder, dirs, files) in os.walk(dir_path, topdown=False): for name in files: FullPATH = [str(os.path.join(root_folder, name)), name] - + print(FullPATH) if not search_endung is False: if FullPATH.endswith(search_endung): li_all.append(FullPATH) @@ -27,7 +27,8 @@ def main(check_list = list, main_folder_in = str): for file_name in run_file_check: if file_name == "frm_ref": filename = "frmref" - output_list.append(str(folder_name + '=' +file_name[1])) + if file_name != "glob": + output_list.append(str(folder_name + '=' +file_name[1])) output_list.append("") else: print(main_folder, "existiert nicht")