recursive folder reading with java.io.File
问题 Currently I create a list of sub folders with this function: % create list of all sub folders dirs = regexp(genpath(basePath),['[^;]*'],'match'); My folders contain however > 100 000 files. This function takes minutes to hours to complete. The number of folders however is only < 100. I read that java.io.File is magnitudes faster. However how can I use it to read folders recursive? jFile = java.io.File([basePath '*']); %java file object jPaths = jFile.listFiles; %java.io.File objects jNames =