@Override
	public FileVisitResult preVisitDirectory(Path pDir, BasicFileAttributes attr) {
		if (!pDir.toString().contains(
				"dynmap" + System.getProperty("file.separator") + "web")) {// Comment out this if to allow copying of files in a folder called dynmap\web
			try {
				dirNum++;
				if (dirNum > 1) {
					String sDir = pDir.toString();
					copyToNewDir = Paths.get(fullPath
							+ System.getProperty("file.separator")
							+ sDir.substring(copyPath.toString().length()));
				} else {
					copyToNewDir = fullPath;
				}

				Files.copy(pDir, copyToNewDir);

				System.out.println("Copying folder " + pDir + " to "
						+ copyToNewDir);
			} catch (IOException e) {
				System.out.println("Copying folder " + pDir
						+ " failed to copy to " + copyToNewDir);
				System.out.println(e);
			}
		}	//end of the if to comment out
		return CONTINUE;
	}