private static String toPath(File root, File dir) {
		String path = dir.getAbsolutePath();
		path = path.substring(root.getAbsolutePath().length()).replace(File.separatorChar, '/');
		if (path.startsWith("/")) {
			path = path.substring(1);
		}
		if (dir.isDirectory() && !path.endsWith("/")) {
			path += "/";
		}
		return path;
	}
Zip the given src into the given output stream.

@param src         src to be zipped
@param os          output stream
@param charsetName character set to be used
@param includeSrc  true if src will be included.
@throws IOException IOException
ngrinder-core/src/main/java/org/ngrinder/common/util/CompressionUtils.java