no glob
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user