10383: Refactored the file upload decision code so that it first skims through
authorLucas Di Pentima <lucas@curoverse.com>
Fri, 9 Dec 2016 21:36:29 +0000 (18:36 -0300)
committerLucas Di Pentima <lucas@curoverse.com>
Fri, 9 Dec 2016 21:36:29 +0000 (18:36 -0300)
commita62e41101a75e01f9b0dd7124eef81714443d8a1
treef53dcd509c0f8619adb0fbd1f6c43765afb47d39
parenta175a62538e4db86296e49e5412be41e026e73b6
10383: Refactored the file upload decision code so that it first skims through
the entire list, instead of deciding one a file by file basis. This allows to
pre-calculate how many bytes are going to be skipped when resuming, and that
allows for a precise way of showing the upload progress report.
Also updated affected tests so they pass with this new way of counting bytes.
sdk/python/arvados/commands/put.py
sdk/python/tests/test_arv_put.py