...
File tmpFile = new File(fileTmpPath);
File newFileTarget = new File(filePath);
tmpFile.renameTo(newFileTarget);
// 修改新文件的权限
FileManageHelper.chmod(newFileTarget);
....


    /**
* Renames the file denoted by this abstract pathname.
*
* <p> Many aspects of the behavior of this method are inherently
* platform-dependent: The rename operation might not be able to move a
* file from one filesystem to another, it might not be atomic, and it
* might not succeed if a file with the destination abstract pathname
* already exists.  The return value should always be checked to make sure
* that the rename operation was successful.
*
* java.nio.file.Files#move move} method to move or rename a file in a
* platform independent manner.
*
* @param  dest  The new abstract pathname for the named file
*
* @return  <code>true</code> if and only if the renaming succeeded;
*          <code>false</code> otherwise
*
* @throws  SecurityException
*          If a security manager exists and its <code>{@link
*          java.lang.SecurityManager#checkWrite(java.lang.String)}</code>
*          method denies write access to either the old or new pathnames
*
* @throws  NullPointerException
*          If parameter <code>dest</code> is <code>null</code>
*/
The rename operation might not be able to move a file from one filesystem to another