package org.aguinore;

public class Downloader {
    private final String pathToFiles;

    public Downloader(String pathToFiles) {
        this.pathToFiles = pathToFiles;
    }
}

@@ -16,16 +16,38 @@
 inore;%0A%0A
+import java.io.File;%0A%0A
 public c
@@ -192,11 +192,629 @@
 s;%0A    %7D
+%0A%0A    public void saveDocs() %7B%0A        File baseDir = new File(pathToFiles);%0A        if (!baseDir.isDirectory()) %7B%0A            throw new IllegalArgumentException(%22Provided path must be a directory%22);%0A        %7D%0A%0A        File%5B%5D files = baseDir.listFiles();%0A        if (files == null) %7B%0A            throw new IllegalArgumentException(%22Provided path must be a nonempty directory%22);%0A        %7D%0A%0A        for (File file : files) %7B%0A            if (file.isFile() && file.getName().endsWith(%22.html%22)) %7B%0A                parseHtmlFile(file);%0A            %7D%0A        %7D%0A    %7D%0A%0A    private void parseHtmlFile(File file) %7B%0A        %0A    %7D
 %0A%7D%0A

parse dir