This doesn’t happen too often.  I had files in folders, in turn within folders.  I needed a nice printout of all the files and folders.  This web page had the solution:

The solution is to use the Terminal, use the command “ls -R > filename”.  The “ls” command lists files.  The “-R” option causes the list to include contents of folders and subfolders.  The “>” symbol redirects the output of the command to a file, named “filename” in this example.  To use this, open Terminal from the menu.  Navigate to the top folder you want to list.  Then run the command.

The result will be a printout of each folder, with the files within listed beneath the folder name.