DownloadProgress

Emitted during file downloads for each folder for each file. By default only a single file in a folder is handled at the same time, but custom configuration can cause multiple files to be shown.

  1. {
  2. "id": 221,
  3. "globalID": 221,
  4. "type": "DownloadProgress",
  5. "time": "2014-12-13T00:26:12.9876937Z",
  6. "data": {
  7. "folder1": {
  8. "file1": {
  9. "total": 800,
  10. "pulling": 2,
  11. "copiedFromOrigin": 0,
  12. "reused": 633,
  13. "copiedFromElsewhere": 0,
  14. "pulled": 38,
  15. "bytesTotal": 104792064,
  16. "bytesDone": 87883776
  17. },
  18. "dir\\file2": {
  19. "total": 80,
  20. "pulling": 2,
  21. "copiedFromOrigin": 0,
  22. "reused": 0,
  23. "copiedFromElsewhere": 0,
  24. "pulled": 32,
  25. "bytesTotal": 10420224,
  26. "bytesDone": 4128768
  27. }
  28. },
  29. "folder2": {
  30. "file3": {
  31. "total": 800,
  32. "pulling": 2,
  33. "copiedFromOrigin": 0,
  34. "reused": 633,
  35. "copiedFromElsewhere": 0,
  36. "pulled": 38,
  37. "bytesTotal": 104792064,
  38. "bytesDone": 87883776
  39. },
  40. "dir\\file4": {
  41. "total": 80,
  42. "pulling": 2,
  43. "copiedFromOrigin": 0,
  44. "reused": 0,
  45. "copiedFromElsewhere": 0,
  46. "pulled": 32,
  47. "bytesTotal": 10420224,
  48. "bytesDone": 4128768
  49. }
  50. }
  51. }
  52. }
  • total - total number of blocks in the file

  • pulling - number of blocks currently being downloaded

  • copiedFromOrigin - number of blocks copied from the file we are about to replace

  • reused - number of blocks reused from a previous temporary file

  • copiedFromElsewhere - number of blocks copied from other files or potentially other folders

  • pulled - number of blocks actually downloaded so far

  • bytesTotal - approximate total file size

  • bytesDone - approximate number of bytes already handled (already reused, copied or pulled)

Where block size is 128KB.

Files/folders appearing in the event data imply that the download has been started for that file/folder, where disappearing implies that the downloads have been finished or failed for that file/folder. There is always a last event emitted with no data, which implies all downloads have finished/failed.