I found the example in <java se 7 programmer exam...> for Revisiting File Copy,when I execute it and found the source directory and the files inside are copied into directories no any files inside.
For example, there is a Test.java file in the source directory and it will be copied as a named Test.java directory.
I would like to know what is the problem in side,thanks a lot!
code as follow:
Joined: Dec 02, 2013
thank you,I already found the problem that Files.copy(source parameter should be path)
subject: use walkFileTree to copy all the directory and files in the sub-directory