How to access files that exists in subfolders

Hello Guys, I want to read the files that exists inside sub-folders. I have a scheduler that reads the files from a path but now that path contains subfolders and I have to read all the files existing in the all the subfolders. e.g. FolderA ->subfolderA1, subfolder A2, subfolder A3 , now subfolderA1, A2 and A3 contains files and I have to read all these files. Can you please help, how can I achieve this? Thanks in advance  
1 answers

You could write a java action


  1. Pass the folder location which will once again be handled with File API
  2. List method gives you list of files and directories in that folder
  3. Use isDirectory or isFile method
  4. Write logic accordingly