func (b *DirManifestBuilder) Clone() *DirManifestBuilder {
	b.mu.Lock()
	defer b.mu.Unlock()

	return &DirManifestBuilder{
		summary: b.summary.Clone(),
		entries: append([]*snapshot.DirEntry(nil), b.entries...),
	}
}
// Clone clones the current state of dirManifestBuilder.
Clone clones the current state of dirManifestBuilder.
// Clone clones the current state of dirManifestBuilder .
func (b *DirManifestBuilder) Clone() *DirManifestBuilder {
	b.mu.Lock()
	defer b.mu.Unlock()
	return &DirManifestBuilder{
		summary: b.summary.Clone(),
		entries: append([]*snapshot.DirEntry(nil), b.entries...),
	}
}
func ( b * DirManifestBuilder ) Clone ( ) * DirManifestBuilder { b . mu . Lock ( ) defer b . mu . Unlock ( ) return & DirManifestBuilder { summary : b . summary . Clone ( ) , entries : append ( [ ] * snapshot . DirEntry ( nil ) , b . entries ... ) , } }
Clone clones the current state of dirManifestBuilder.
Clone clones the current state of dirManifestBuilder .