import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
public class Demo {
public static void main(String[] args) throws IOException {
Collection<File> files = FileUtils.listFiles(new File("E:\\大数据课程(讲义+视频+代码)\\3_传智大学\\2. 专业课课程\\大一专业课 资料\\11_Spring Boot"), new String[]{"doc","txt"}, true);
for (File file : files) {
System.out.println(file.getName());
FileUtils.copyFileToDirectory(file,new File("E:\\大数据课程(讲义+视频+代码)\\传智课件\\第二学期课程\\8_SpringBoot"),false);
}
System.out.println("移动完毕");
}
}