import os
def get_excel_file_paths(folder_path):
excel_file_paths = []
for root, dirs, files in os.walk(folder_path):
for file in files:
if file.endswith(".xlsx"):
excel_file_paths.append(os.path.join(root, file))
return excel_file_paths
folder_path = "/path/to/my/folder" ----I have a list of folders in a csv file which i read into the workspace so i plan to use that attribute here
excel_paths = get_excel_file_paths(folder_path)
for path in excel_paths:
print(path)
Having troubles converting this to run in fme
Thanks!