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)
| 287 | // NoteFileUploaded is a hook for pk-put to report that a file |
| 288 | // was uploaded. TODO: move this to pkg/client/android probably. |
| 289 | func 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. |
no test coverage detected