We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi I have a folder inside my jar that I want it to be copied to the user's documents folder. I tried several methods and they don't seem to work.
This is my current code:
File dest = new File(System.getProperty("user.home") + "\\alchemy\\resources");
File source = new File("src\\vansius\\alchemy\\resources");
try {
FileUtils.copyDirectory(source, dest);
} catch (IOException e) {
e.printStackTrace();
}
No error message is shown but the directory is not copied