diff --git a/extractor/src/test/java/org/schabi/newpipe/downloader/RecordingDownloader.java b/extractor/src/test/java/org/schabi/newpipe/downloader/RecordingDownloader.java index c48d74990..0ba1a9935 100644 --- a/extractor/src/test/java/org/schabi/newpipe/downloader/RecordingDownloader.java +++ b/extractor/src/test/java/org/schabi/newpipe/downloader/RecordingDownloader.java @@ -33,8 +33,9 @@ class RecordingDownloader extends Downloader { file.delete(); } } + } else { + Files.createDirectories(path); } - Files.createDirectories(path); } @Override