public static void copyDs(File sourceFile, String destinationFolder) throws IOException {
String destinationFilePath = destinationFolder + "/" + getFileSimpleName(sourceFile);
File file = new File(destinationFilePath);
File file1 = file.getParentFile();
while (!file1.exists()){
file1.mkdir();
file1 = file1.getParentFile();
}
Files.copy(sourceFile.toPath(), file.toPath());
}
11-03
1512

09-20