private void getFile(File file, List<File> fileList, String type) throws Exception {
        if (file.isDirectory()) {
            File[] files = file.listFiles();
            if (files != null) {
                for (File f : files) {
                    getFile(f, fileList, type);
                }
            }
        } else {
            if (".*".equals(type) || type.equals(getFileExtName(file.getPath()))) {
                fileList.add(file);
            }
        }
    }
Get layout information
@param target  the target information
@return   the layout information
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/simplemvc/RequestDispatcher.java