int hash = HarFileSystem.getHarHash(relativePath.toString());
String towrite = null;
Path srcPath = realPath(relativePath, rootPath);
long startPos = partStream.getPos();
FileSystem srcFs = srcPath.getFileSystem(conf);
HarProperties properties = value.getProperties();
String propStr = properties.serialize();
if (value.isDir()) {
towrite = HarFileSystem.encode(relativePath.toString())
+ " dir " + propStr + " 0 0 ";
StringBuffer sbuff = new StringBuffer();
sbuff.append(towrite);