I\'m trying to copy a number of files to an output directory in Java 7 using Path and Files. This doesn\'t work:
Files.copy(Paths.get(\"/my/file.txt\"), Paths.ge
The command appears to be attempting to replace the directory itself. Try specifying the filename in the target directory
Files.copy(Paths.get("/my/file.txt"), Paths.get("/my/output/directory/file.txt"));