MCPcopy
hub / github.com/kopia/kopia / EstimatedDataSize

Method EstimatedDataSize

cli/cli_progress.go:246–257  ·  view source on GitHub ↗
(fileCount, totalBytes int64)

Source from the content-addressed store, hash-verified

244}
245
246func (p *cliProgress) EstimatedDataSize(fileCount, totalBytes int64) {
247 if p.shared {
248 // do nothing
249 return
250 }
251
252 p.outputMutex.Lock()
253 defer p.outputMutex.Unlock()
254
255 p.estimatedFileCount = fileCount
256 p.estimatedTotalBytes = totalBytes
257}
258
259func (p *cliProgress) UploadFinished() {
260 // do nothing here, we still want to report the files flushed after the Upload has completed.

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected