Simplified situation: I'm located in
~. There is a folder
~/folder and inside, there are many, many, many
.txt files named
I want to generate a
file_list.txt inside of
~ whose contents are:
folder/1.txt folder/2.txt etc...
If I do
1.txt 2.txt etc.
How do I get the folder to be listed as well? I've just been doing a workaround loop in python but that's a bit slow when the number of files I have is this large.