I have this folder structure:
Each ProductCode## folder contains many JPG files, like
image01.jpg, image02.jpg and so on
I need to create a file that contains a single line for each ProductCode that lists all the files that exist in the folder "ProductCode##", like:
/Brand/ProductCode01/image01.jpg /Brand/ProductCode01/image02.jpg /Brand/ProductCode01/image03.jpg /Brand/ProductCode02/image01.jpg /Brand/ProductCode02/image02.jpg
All the files need to be listed on a single line, separated by space and ended with newline at the last filename.