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 <o.kopysov@samsung.com>
  • Loading branch information
o-kopysov committed Aug 13, 2024
1 parent 57c5e2b commit 3f64b86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 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,10 @@ 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 3f64b86

Please sign in to comment.