Compare commits
2 commits
16d0c0dee3
...
5a76734072
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a76734072 | |||
| 21a9e39e52 |
2 changed files with 5 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ def kbps_argparse(args):
|
||||||
|
|
||||||
(time, size, kibs) = kbps(time=time, size=size, kbps=kibs)
|
(time, size, kibs) = kbps(time=time, size=size, kbps=kibs)
|
||||||
|
|
||||||
print(f'{hms.seconds_to_hms(time)} @ {kibs} kbps = {bytestring.bytestring(size)}')
|
print(f'{hms.seconds_to_hms_letters(time)} @ {round(kibs, 4)} kbps = {bytestring.bytestring(size)}')
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
|
|
||||||
|
|
@ -279,6 +279,10 @@ def copy_directory(
|
||||||
written_bytes = 0
|
written_bytes = 0
|
||||||
|
|
||||||
for (source_file, destination_file) in walker:
|
for (source_file, destination_file) in walker:
|
||||||
|
if not source_file.is_file:
|
||||||
|
log.warning('%s disappeared during directory copy.', source_file.absolute_path)
|
||||||
|
continue
|
||||||
|
|
||||||
if stop_event and stop_event.is_set():
|
if stop_event and stop_event.is_set():
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue