集册 Java实例教程 rmdir公司

rmdir公司

欢马劈雪     最近更新时间:2020-01-02 10:19:05

435
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();


            
展开阅读全文