FileUtils copyFile deleteFile

import java.io.File;

import org.apache.commons.io.FileUtils;

public class FileUtil {
 public static void deleteFile(File f)throws Exception{
  File [] fs=f.listFiles();
  for(int i=0;i   fs[i].delete();
  }
 }
 public static void copyFile(File a ,File b) throws Exception{
   FileUtils.copyFile(a, b);
 }
 

}

 

你可能感兴趣的:(工作-技术)