From 63c237db411f9f989527ffc17d817ba95c6bbd81 Mon Sep 17 00:00:00 2001 From: XiangRongLin <41164160+XiangRongLin@users.noreply.github.com> Date: Mon, 11 Jan 2021 07:57:11 +0100 Subject: [PATCH] Only create directories if they do not exist --- .../org/schabi/newpipe/downloader/RecordingDownloader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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