Skip to content

Conversation

@jdcasey
Copy link
Member

@jdcasey jdcasey commented Dec 4, 2021

This makes it a little easier to see how the upload is progressing, even though you really only have progress for each type of operation within the upload / delete.

@jdcasey jdcasey requested a review from ligangty December 4, 2021 23:54
@jdcasey jdcasey force-pushed the file-transfer-counters branch from 6aba202 to 8cd4a93 Compare December 4, 2021 23:59
@coveralls
Copy link

coveralls commented Dec 4, 2021

Pull Request Test Coverage Report for Build 1550470305

  • 10 of 10 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 81.795%

Totals Coverage Status
Change from base Build 1550441662: 0.03%
Covered Lines: 1303
Relevant Lines: 1593

💛 - Coveralls

@jdcasey jdcasey force-pushed the file-transfer-counters branch from 8cd4a93 to f3aab3b Compare December 4, 2021 23:59
Copy link
Member

@ligangty ligangty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except a small change.

if path.startswith(slash_root):
path = path[len(slash_root):]
if not fn(full_path, path):
if not fn(full_path, path, index, len(file_paths)):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this len(file_paths) should be stored in a var to avoid run in a loop.

@jdcasey jdcasey force-pushed the file-transfer-counters branch from f3aab3b to 3568e98 Compare December 7, 2021 17:02
@jdcasey jdcasey merged commit 7b3a027 into main Dec 7, 2021
@jdcasey jdcasey deleted the file-transfer-counters branch December 7, 2021 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants