0
내 Java 프로그램의 다른 디렉토리에 대한 하드 링크를 디렉토리에 작성해야합니다. (그래서 파일에 대한 링크가 아닙니다) https://docs.oracle.com/javase/tutorial/essential/io/links.html을 사용했지만 작동하지 않습니다. 당신의 도움에 대한 감사합니다 :)이 exact same documentation that you linked to in the question에서Windows 용 java에서 디렉토리의 하드 링크 만들기
private static void creatlink(Path newLink, Path target) throws IOException {
try {
Files.createLink(newLink, target);
} catch (IOException x) {
System.err.println(x);
}
}
오류 로그가 좋을 것입니다. 사용 : x.printStackTrace(); – Flummox