public final void moveAndCleanup() throws Exception {
  String path=conf.getConfigurationTargetPath();
  Path targetPath=Paths.get(path,timestamp);
  Path targetConf=Paths.get(path,SIGNED_DIRECTORY_NAME);
  Files.createDirectories(targetPath.getParent());
  log.info("Moving '{}' to '{}'",tempDirPath,targetPath);
  Files.move(tempDirPath,targetPath);
  log.info("Moving '{}' to '{}'",tempConfPath,targetConf);
  Files.move(tempConfPath,targetConf,StandardCopyOption.ATOMIC_MOVE);
  FileUtils.deleteDirectory(tempDirPath.toFile());
}

public final void moveAndCleanup ( ) throws Exception { String path = conf . getConfigurationTargetPath ( ) ; Path targetPath = Paths . get ( path , timestamp ) ; Path targetConf = Paths . get ( path , SIGNED_DIRECTORY_NAME ) ; Files . createDirectories ( targetPath . getParent ( ) ) ; log . info ( "Moving '{}' to '{}'" , tempDirPath , targetPath ) ; Files . move ( tempDirPath , targetPath ) ; log . info ( "Moving '{}' to '{}'" , tempConfPath , targetConf ) ; Files . move ( tempConfPath , targetConf , StandardCopyOption . ATOMIC_MOVE ) ; FileUtils . deleteDirectory ( tempDirPath . toFile ( ) ) ; }
moves the signed global configuration to the location where it is accessible to clients and cleans up any remaining temporary files .
