MCPcopy Index your code
hub / github.com/questdb/questdb / copyResource

Method copyResource

core/src/main/java/io/questdb/Bootstrap.java:423–430  ·  view source on GitHub ↗
(String dir, boolean force, byte[] buffer, String res, String dest, Log log)

Source from the content-addressed store, hash-verified

421 }
422
423 private static void copyResource(String dir, boolean force, byte[] buffer, String res, String dest, Log log) throws IOException {
424 File out = new File(dir, dest);
425 try (InputStream is = ServerMain.class.getResourceAsStream("/io/questdb/site/" + res)) {
426 if (is != null) {
427 copyInputStream(force, buffer, out, is, log);
428 }
429 }
430 }
431
432 private static void copyResource(String dir, boolean force, byte[] buffer, String res, Log log) throws IOException {
433 copyResource(dir, force, buffer, res, res, log);

Callers 3

BootstrapMethod · 0.95
copyLogConfResourceMethod · 0.95
extractConfDirMethod · 0.95

Calls 1

copyInputStreamMethod · 0.95

Tested by

no test coverage detected