Please note that the above example work with the Adobe Repository. If you want to read the files from File System, use "File Utilities->Find" service.
To find sub-folders, you should make a recursive to call to the same service with the sub-folder name.