public static List getFileName()

in src/main/java/org/apache/shenyu/util/FileUtil.java [69:83]


    public static List<String> getFileName(final String path) {
        List<String> fileNames = new ArrayList<>();
        File file = new File(path);
        File[] tempList = file.listFiles();

        if (tempList == null) {
            throw new RuntimeException("empty folder");
        }

        for (File f : tempList) {
            fileNames.add(f.getName());
        }
        return fileNames;

    }