/** * Upload files from a given path to a config in Zookeeper * @param dir {@link java.nio.file.Path} to the files * @param configName the name to give the config * @throws IOException * if an I/O error occurs or the path does not exist */ public void uploadConfigDir(Path dir, String configName) throws IOException { uploadToZK(dir, CONFIGS_ZKNODE + "/" + configName); }