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
From docs Java 7:
copy(Path source, Path target, CopyOption... options) Copy a file to a target file.
copy(Path source, Path target, CopyOption... options)
Copy a file to a target file.
So you must specify destination file.
I have a large number of files
You can get file name by splitting source path and append to destination folder.