mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 13:11:39 +07:00
EDU-532 Add custom folders to course
This commit is contained in:
+8
-1
@@ -122,7 +122,14 @@ public class StudyGenerator {
|
||||
}
|
||||
});
|
||||
for (File file : files) {
|
||||
FileUtil.copy(file, new File(baseDir.getPath(), file.getName()));
|
||||
File dir = new File(baseDir.getPath(), file.getName());
|
||||
if (file.isDirectory()) {
|
||||
FileUtil.copyDir(file, dir);
|
||||
continue;
|
||||
}
|
||||
|
||||
FileUtil.copy(file, dir);
|
||||
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user