How to access files that exists in subfolders

0
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  
asked
1 answers
0

You could write a java action

Refer https://docs.oracle.com/javase/7/docs/api/java/io/File.html

  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
answered