simple
This commit is contained in:
2
jenkins-module.txt
Normal file
2
jenkins-module.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
fm=test.txt
|
||||||
|
|
||||||
1
jenkins/fm/test.txt
Normal file
1
jenkins/fm/test.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
dj
|
||||||
@@ -16,20 +16,21 @@ def show_all_files_directory(dir_path = str, search_endung = False, search_strin
|
|||||||
li_all.append(FullPATH)
|
li_all.append(FullPATH)
|
||||||
return li_all
|
return li_all
|
||||||
|
|
||||||
|
def simple_files(dir_path):
|
||||||
|
return os.listdir(dir_path)
|
||||||
|
|
||||||
def main(check_list = list, main_folder_in = str):
|
def main(check_list = list, main_folder_in = str):
|
||||||
output_list = []
|
output_list = []
|
||||||
for folder_name in check_list:
|
for folder_name in check_list:
|
||||||
main_folder =main_folder_in + os.sep + folder_name
|
main_folder =main_folder_in + os.sep + folder_name
|
||||||
if os.path.exists(main_folder):
|
if os.path.exists(main_folder):
|
||||||
run_file_check = show_all_files_directory(dir_path=main_folder)
|
run_file_check = simple_files(dir_path=main_folder)
|
||||||
|
print(run_file_check)
|
||||||
for file_name in run_file_check:
|
for file_name in run_file_check:
|
||||||
if file_name == "frm_ref":
|
if file_name == "frm_ref":
|
||||||
filename = "frmref"
|
filename = "frmref"
|
||||||
print(file_name)
|
#output_list.append(str(folder_name + '=' +file_name[1]))
|
||||||
if file_name != "glob":
|
output_list.append(str(folder_name + '=' +file_name))
|
||||||
output_list.append(str(folder_name + '=' +file_name[1]))
|
|
||||||
output_list.append("")
|
output_list.append("")
|
||||||
else:
|
else:
|
||||||
print(main_folder, "existiert nicht")
|
print(main_folder, "existiert nicht")
|
||||||
|
|||||||
Reference in New Issue
Block a user