Here you can find the source of renameFolder(String destinationFolderPath, String zipFileName, String prefix)
public static void renameFolder(String destinationFolderPath, String zipFileName, String prefix)
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { public static void renameFolder(String destinationFolderPath, String zipFileName, String prefix) { File folder = new File(destinationFolderPath + File.separator + zipFileName); File managerFolder = new File(destinationFolderPath + File.separator + prefix + zipFileName); if (folder.exists()) { folder.renameTo(managerFolder); } else {// w w w . jav a 2s . c o m System.out.println(zipFileName + " Folder not found..!!"); } } }