private void AddSymlink(string name) { if (TarOptions.StatusWriter != null) { TarOptions.StatusWriter.WriteLine("{0}", name); } HeaderBlock hb = HeaderBlock.CreateOne(); hb.InsertName(name); hb.InsertLinkName(name); hb.typeflag = (byte)TarEntryType.SymbolicLink; hb.SetSize(0); hb.SetChksum(); byte[] block = serializer.RawSerialize(hb); _outfs.Write(block, 0, block.Length); }