public String[] genHtml(String parent[]) {
        String parentDir;
        String subDir = "";

        int i = 1;

        if (parent != null) {
            int j= 0;
            for (String d : parent) {
                subDir += d + "/";

            }
            if (parent.length == 1) {
                parentDir = "/";
            } else parentDir = parent[parent.length - 2];

            href = new String[s.length + 3];
            System.out.println("CSubDirectory is " + subDir);

            if (parentDir != null) {
                i = 2;
                href[1] = ("<tr><td><a href = " + "'" + "http://localhost:8080/" + parentDir + "'>" + " .. </a></td><td></td><td>"
                        + (new Date(file.getParentFile().lastModified()).toString()) + "</td>");
            }

        } else href = new String[s.length + 2];

        href[0] = HEADER;

        String name;
        for (File srt : s) {
            if (parent != null) {
                System.out.println("srt.getName() is " + srt.getName());
                name = "http://localhost:8080/" + subDir + srt.getName();
                System.out.println("name is " + name);
            } else name = "http://localhost:8080/" + srt.getName();

            String time = new Date(srt.lastModified()).toString();


            if (srt.isDirectory()) {
                href[i] = ("<tr><td><a href = '" + name + "'>" + srt.getName() + "</a></td><td></td><td>" +
                        time + "</td>");
            } else {
                String size = srt.length() + "b";
                href[i] = ("<tr><td><a href = '" + name + "'>" + srt.getName() + "</a></td><td>" +
                        size + "</td><td>" + time + "</td>");
            }
            i++;
        }
        href[href.length - 1] = ROW;

        return href;
    }