Commit b5011f2e authored by pavan kumar.siligam's avatar pavan kumar.siligam

ensure the progress bar reaches 100%

parent 8feddd35
...@@ -456,6 +456,9 @@ def upload(source, destination): ...@@ -456,6 +456,9 @@ def upload(source, destination):
# printProgressBar(current_size, source_filesize, source_filename) # printProgressBar(current_size, source_filesize, source_filename)
printProgressBar(current_size, source_filesize, source_filename) printProgressBar(current_size, source_filesize, source_filename)
# complete the progress bar
printProgressBar(source_filesize, source_filesize, source_filename)
fut.result() fut.result()
if requires_renaming: if requires_renaming:
p.cwd(destination_dirname) p.cwd(destination_dirname)
...@@ -526,6 +529,10 @@ def download(source, destination): ...@@ -526,6 +529,10 @@ def download(source, destination):
printProgressBar(current_size, source_filesize, printProgressBar(current_size, source_filesize,
os.path.basename(destination_filepath)) os.path.basename(destination_filepath))
# Finish printing progress bar
printProgressBar(current_size, source_filesize,
os.path.basename(destination_filepath))
fut.result() fut.result()
if requires_renaming: if requires_renaming:
curdir = os.path.abspath(os.curdir) curdir = os.path.abspath(os.curdir)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment