From db749bb2d6d95681da170d0b6d0e278d34f12051 Mon Sep 17 00:00:00 2001 From: jonnybravo Date: Thu, 15 Aug 2024 20:36:36 +0200 Subject: [PATCH] fix --- jenkins/fm/dkdkd/djdj.txt | 0 play_with_os/os_play.py | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 jenkins/fm/dkdkd/djdj.txt diff --git a/jenkins/fm/dkdkd/djdj.txt b/jenkins/fm/dkdkd/djdj.txt new file mode 100644 index 0000000..e69de29 diff --git a/play_with_os/os_play.py b/play_with_os/os_play.py index ab69d7f..4f178c7 100755 --- a/play_with_os/os_play.py +++ b/play_with_os/os_play.py @@ -17,7 +17,9 @@ def show_all_files_directory(dir_path = str, search_endung = False, search_strin return li_all def simple_files(dir_path): - return os.listdir(dir_path) + files = os.listdir(dir_path) + return [f for f in files if os.path.isfile(dir_path + '/'+f)] + def main(check_list = list, main_folder_in = str): output_list = []