private static List readNacosConfigs()

in edas-demo/config-demo/apollo-migration/src/main/java/com/alibabacloud/edas/tool/MigrateToEDAS.java [62:81]


    private static List<NacosConfig> readNacosConfigs(String path) {
        if (path == null || path.length() == 0) {
            fatal("File path is not specified.");
        }

        if (path.endsWith(".zip")) {
            return ZipFileProcessor
                    .getInstance()
                    .visit(path, NAMESPACE_ID);
        }

        if (path.endsWith("/")) {
            return DirectoryProcessor
                    .getInstance()
                    .visit(path, NAMESPACE_ID);
        }

        fatal("File path not supported: %s", path);
        return null;
    }