0
我需要为一个文件夹移动到另一个文件如何将文件从一个文件夹移动到另一个文件夹?
在Java中做到这一点,我将创建一个方法是这样的:
private boolean moveFile(List<String> names, dir moveTo){
for(String file : names){
//copy the file from one dir to another
}
}
是否有更多的“功能”的方式在斯卡拉或做到这一点更好的方法?也许使用scala我甚至不需要遍历文件?