private List<String> readDir() {
        File dir = new File(basePath);
        File[] files = dir.listFiles(jsonFilenameFilter);
        ArrayList<String> filenames = new ArrayList<>();
        for (File f : files) {
            if (f.isFile()) {
                filenames.add(f.getName());
            }
        }
        return filenames;
    }