Load list of directory to Dataloader

Hello,

Is there any way to pass a list of directories contain in a text file to the data loader?
Because I only want a certain files from the folder and not all of it.
If I use root it will load all the files in the folder.

Thanks

You can create a custom Dataset as described on this tutorial, where you could filter out or specify your files directly.