We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2369a13 commit 12a7f85Copy full SHA for 12a7f85
src/main/java/net/cofcool/sourcebox/internal/HtmlDownloader.java
@@ -34,7 +34,6 @@
34
import org.apache.commons.io.FileUtils;
35
import org.apache.commons.io.FilenameUtils;
36
import org.apache.commons.io.IOUtils;
37
-import org.apache.commons.lang3.RandomStringUtils;
38
import org.apache.commons.lang3.StringUtils;
39
import org.jsoup.Connection;
40
import org.jsoup.Connection.Method;
@@ -273,7 +272,7 @@ enum OutputType {
273
272
html((d, f, t) -> {
274
File file = Paths.get(f, t + ".html").toFile();
275
if (file.exists()) {
276
- file = Paths.get(f, t + RandomStringUtils.randomNumeric(2) + ".html").toFile();
+ return;
277
}
278
FileUtils.writeStringToFile(file, d.outerHtml(), StandardCharsets.UTF_8);
279
}),
0 commit comments