I use a script component a lot to provide me a list of files in a data flow. I use it to record the log files from my servers and identify which ones need processing.
This demo show how to add a script component to a data flow as a source component and configure the script component to output the details of the files in a folder passed to the component.
You must be registered to download this demo. Registration is free.