There are situation in which you need to share a list of all the files in a directory and there is more to it than what you see in viewport if sharing a screenshot is the easier way -
Here's the terminal command to generate a list of all contents of any directory, and export to a text file.
ls -l -R path_to/source/directory > ~/Desktop/file_name.txt
path_to/source/directory with actual source, or just drag the source directory into the terminal window after
ls -l -R if you're lazy to type the whole path & finish the command with destination+filename before you hit