拷贝文件
Files.copy(Paths.get(fromFile.getPath()),Paths.get(toFile.getPath()), LinkOption.NOFOLLOW_LINKS);
移动文件
boolean isRename = fromFile.renameTo(toFile);
if(!isRename){
throw new Exception("文件移动失败!\n");
}
删除文件
boolean isDelete = toFile.delete();
if (!isDelete) {
throw new Exception("文件删除失败!");
}