< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/PathUtilities.java

Print this page

        

*** 82,92 **** */ private static final int MAX_FILE_NAME_LENGTH = 242; private static final String ELLIPSIS = "..."; ! static Path createUnique(OptionValues options, OptionKey<String> baseNameOption, String id, String label, String ext, boolean createDirectory) throws IOException { String uniqueTag = ""; int dumpCounter = 1; String prefix; if (id == null) { prefix = baseNameOption.getValue(options); --- 82,92 ---- */ private static final int MAX_FILE_NAME_LENGTH = 242; private static final String ELLIPSIS = "..."; ! static Path createUnique(OptionValues options, OptionKey<String> baseNameOption, String id, String label, String ext, boolean createMissingDirectory) throws IOException { String uniqueTag = ""; int dumpCounter = 1; String prefix; if (id == null) { prefix = baseNameOption.getValue(options);
*** 116,126 **** } } Path dumpDir = DebugOptions.getDumpDirectory(options); Path result = Paths.get(dumpDir.toString(), fileName); try { ! if (createDirectory) { return Files.createDirectory(result); } else { try { return Files.createFile(result); } catch (AccessDeniedException e) { --- 116,126 ---- } } Path dumpDir = DebugOptions.getDumpDirectory(options); Path result = Paths.get(dumpDir.toString(), fileName); try { ! if (createMissingDirectory) { return Files.createDirectory(result); } else { try { return Files.createFile(result); } catch (AccessDeniedException e) {
< prev index next >