Read files from mutiple folder excpet subroot folder

Hi Friends,

on particular path i have one folder(ABC) and (DEF) contaning two subfolder.
i want to read files from ABC and DEF Folder only
then how i can take the files.
please help me over this.

Hi @Rup_1

Refer to blow to use Directory class to get directories and files.