rmdir
import java.io.File;/** 来自 n o w j a v a . c o m**/ import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.util.ArrayList; import java.util.List; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import org.apache.log4j.Logger; public class Main{ private static final Logger logger = Logger.getLogger(FileHelper.class); /** * @param foldername */ public static void rmdir(String pathname) { logger.debug(".."); //n o w j a v a . c o m 提供 File f = new File(pathname); for (String filename : f.list()) { String path = new StringBuffer(pathname + File.separator + filename).toString();