boolean () { try { Path target = Files.createTempFile("IOTestUtil_link_target.", ".txt"); try { Path link = target.getParent().resolve("IOTestUtil_link"); try { Files.createSymbolicLink(link, target.getFileName()); return true; } finally { Files.deleteIfExists(link); } } finally { Files.delete(target); } } catch (Throwable t) { Logger.getInstance(IoTestUtil.class).debug(t); return false; } }