package com.xiaomai.utils;


import java.io.File;

/**
 * 用来统计api 个数
 */
public class GetFilesNum {
    public static int num = 0;
    public static void main(String[] args) {
        // TODO Auto-generated method stub

        System.out.println( show (new File("src/main/java/com/xiaomai/cases")));
    }

    public static int show(File file) {
        // TODO Auto-generated method stub
        for(File f : file.listFiles()) {
            if(f.isFile()) {
                if(f.getName().startsWith("Test")) {
                    num++;
                }
            }else {
                show(f);
            }
        }
        return num;
    }

}
