I currently know how to create a list of files that are in the current directory using:
files = [os.path.join(root, name)
for root, dirs, files in os.walk(os.getcwd())
for name in files
if name.endswith(".fastq")]
However, I would like the list 'files' to contain list of folders and within the list of folders, the file names.
Thank you in advance.