Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 2a0e22f

Browse files
committed
Fix travis again
1 parent 9cc84f8 commit 2a0e22f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/handlers/FileHandlerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void addFileTests() throws IOException{
3535
files.forEach((file, loadingOption) -> {
3636
if(!file.exists() || file.delete()){
3737
try{
38-
if(file.mkdirs() && file.createNewFile())
38+
if((file.getParentFile().mkdirs() || file.getParentFile().isDirectory()) && file.createNewFile())
3939
Files.write(file.toPath(), init.getBytes());
4040
else
4141
Assert.fail("Failed to create new file for testing: " + file.getPath());

0 commit comments

Comments
 (0)