private void copyConf(org.crsh.vfs.File src, File dst) throws IOException { if (!src.hasChildren()) { if (!dst.exists()) { Resource resource = ResourceManager.loadConf(src); if (resource != null) { log.info("Copied resource " + src.getPath().getValue() + " to " + dst.getCanonicalPath()); Utils.copy(new ByteArrayInputStream(resource.getContent()), new FileOutputStream(dst)); } } } }
File file = confFS.get(Path.get(path)); if (file != null) { return Collections.singleton(loadConf(file));
private void copyConf(org.crsh.vfs.File src, File dst) throws IOException { if (!src.hasChildren()) { if (!dst.exists()) { Resource resource = ResourceManager.loadConf(src); if (resource != null) { log.info("Copied resource " + src.getPath().getValue() + " to " + dst.getCanonicalPath()); Utils.copy(new ByteArrayInputStream(resource.getContent()), new FileOutputStream(dst)); } } } }
private void copyConf(org.crsh.vfs.File src, File dst) throws IOException { if (!src.hasChildren()) { if (!dst.exists()) { Resource resource = ResourceManager.loadConf(src); if (resource != null) { log.info("Copied resource " + src.getPath().getValue() + " to " + dst.getCanonicalPath()); Utils.copy(new ByteArrayInputStream(resource.getContent()), new FileOutputStream(dst)); } } } }
File file = confFS.get(Path.get(path)); if (file != null) { return Collections.singleton(loadConf(file));
File file = confFS.get(Path.get(path)); if (file != null) { return Collections.singleton(loadConf(file));