MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / moveLog

Method moveLog

test/one/profiler/test/TestProcess.java:237–242  ·  view source on GitHub ↗
(File file, String name, boolean autoExtension)

Source from the content-addressed store, hash-verified

235 }
236
237 private void moveLog(File file, String name, boolean autoExtension) throws IOException {
238 if (file != null) {
239 String targetName = autoExtension ? name + getExtFromFile(file) : name;
240 Files.move(file.toPath(), Paths.get(logDir, targetName), StandardCopyOption.REPLACE_EXISTING);
241 }
242 }
243
244 private void moveLogs() {
245 if (logDir == null) {

Callers 1

moveLogsMethod · 0.95

Calls 2

getExtFromFileMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected