Skip to content

Commit f94a933

Browse files
committed
fix copy or mkdir at root.
1 parent 9a38183 commit f94a933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/fr/formiko/utils/FLUFiles.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ private void zipFile(File fileToZip, String fileName, String destination, ZipOut
315315
}
316316
private void createParents(String path) { createParents(new File(path)); }
317317
private void createParents(File file) {
318-
if (file != null) {
318+
if (file != null && file.getParentFile() != null) {
319319
file.getParentFile().mkdirs();
320320
}
321321
}

0 commit comments

Comments
 (0)