Skip to content

Commit

Permalink
fix: Fix Svace issue with ignorred check
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Kopysov <[email protected]>
  • Loading branch information
o-kopysov committed Aug 13, 2024
1 parent 57c5e2b commit 561e048
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/lpvs/util/LPVSFileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@ public static void copyFiles(String sourcePath, String directoryPath) throws IOE
StandardCopyOption.REPLACE_EXISTING);
} else if (file.isDirectory()) {
File destinationSubdir = new File(destination, file.getName());
destinationSubdir.mkdirs();
boolean isCreated = destinationSubdir.mkdirs();
if (!isCreated) {
throw new IOException(
"Failed to create directory: "
+ destinationSubdir.getAbsolutePath());
}
copyFiles(file.getAbsolutePath(), destinationSubdir.getAbsolutePath());
}
}
Expand Down

0 comments on commit 561e048

Please sign in to comment.