Skip to content

Commit 63c237d

Browse files
committed
Only create directories if they do not exist
1 parent e82cb1e commit 63c237d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extractor/src/test/java/org/schabi/newpipe/downloader/RecordingDownloader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ public RecordingDownloader(String stringPath) throws IOException {
3333
file.delete();
3434
}
3535
}
36+
} else {
37+
Files.createDirectories(path);
3638
}
37-
Files.createDirectories(path);
3839
}
3940

4041
@Override

0 commit comments

Comments
 (0)