# list_all_files_in_all_folders.py
import os
# get current working directory
currentFolder = os.getcwd()
# walk through all folders and subfolders
for dirpath, dirnames, filenames in os.walk(currentFolder):
# check each file in current folder
for file in filenames:
print(file)
input('')
##
'''
image_gallery.html
listdir.py
listdir_endswith.py
list_all_file_names_all_folders.py
list_image_file_names_all_folders_list.py
list_py_file_names_all_folders.py
list_py_file_names_all_folders_list.py
list_py_file_paths_all_folders.py
make_folder_if_not_already_made.py
notes.txt
001.jpg
002.jpg
008.jpg
008.png
'''
# Dedicated to God the Father
# All Rights Reserved Christopher Andrew Topalian Copyright 2000-2024
# https://github.com/ChristopherTopalian
# https://github.com/ChristopherAndrewTopalian
# https://sites.google.com/view/CollegeOfScripting