public static List < File > getKSChildDirectories ( String ksName ) { List < File > result = new ArrayList <> ( ) ; for ( DataDirectory dataDirectory : dataDirectories ) { File ksDir = new File ( dataDirectory . location , ksName ) ; File [ ] cfDirs = ksDir . listFiles ( ) ; if ( cfDirs == null ) continue ; for ( File cfDir : cfDirs ) { if ( cfDir . isDirectory ( ) ) result . add ( cfDir ) ; } } return result ; }
Recursively finds all the sub directories in the KS directory .