MCPcopy
hub / github.com/perkeep/perkeep / NoteFileUploaded

Function NoteFileUploaded

pkg/client/android/androidx.go:289–299  ·  view source on GitHub ↗

NoteFileUploaded is a hook for pk-put to report that a file was uploaded. TODO: move this to pkg/client/android probably.

(fullPath string, uploaded bool)

Source from the content-addressed store, hash-verified

287// NoteFileUploaded is a hook for pk-put to report that a file
288// was uploaded. TODO: move this to pkg/client/android probably.
289func NoteFileUploaded(fullPath string, uploaded bool) {
290 if !IsChild() {
291 return
292 }
293 if uploaded {
294 statFileUploaded.Incr(1)
295 } else {
296 statFileExisted.Incr(1)
297 }
298 Printf("FILE_UPLOADED %s\n", fullPath)
299}
300
301// StatusReceiver is a blobserver.StatReceiver wrapper that
302// reports the full filename path and size of uploaded blobs.

Callers 2

uploadNodeRegularFileMethod · 0.92
runMethod · 0.92

Calls 3

IsChildFunction · 0.70
PrintfFunction · 0.70
IncrMethod · 0.45

Tested by

no test coverage detected