System.out.println("Building directory listings...");
try {
    buildDirectoryListings();
} catch (IOException e) {
    e.printStackTrace();
        System.err.println(Failed to build directory listings!");
        return;
}