The current implementation of FileUtil.copy relies on opening Streams, while there is a method Files.copy() which could/should be used.
For FileUtil.move, the library method renameTo is used. However, the documentation of that method says "Note that the Files class defines the move method to move or rename a file in a platform independent manner.".
The current implementation of FileUtil.copy relies on opening Streams, while there is a method Files.copy() which could/should be used.
For FileUtil.move, the library method renameTo is used. However, the documentation of that method says "Note that the Files class defines the move method to move or rename a file in a platform independent manner.".