Skip to content

Commit

Permalink
fix copy or mkdir at root.
Browse files Browse the repository at this point in the history
  • Loading branch information
HydrolienF committed Apr 13, 2024
1 parent 9a38183 commit f94a933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/formiko/utils/FLUFiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ private void zipFile(File fileToZip, String fileName, String destination, ZipOut
}
private void createParents(String path) { createParents(new File(path)); }
private void createParents(File file) {
if (file != null) {
if (file != null && file.getParentFile() != null) {
file.getParentFile().mkdirs();
}
}
Expand Down

0 comments on commit f94a933

Please sign in to comment.