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