MCPcopy Create free account
hub / github.com/s3tools/s3cmd / update

Method update

S3/Progress.py:44–53  ·  view source on GitHub ↗
(self, current_position = -1, delta_position = -1)

Source from the content-addressed store, hash-verified

42 self.display(new_file = True)
43
44 def update(self, current_position = -1, delta_position = -1):
45 self.time_last = self.time_current
46 self.time_current = datetime.datetime.now()
47 if current_position > -1:
48 self.current_position = current_position
49 elif delta_position > -1:
50 self.current_position += delta_position
51 #else:
52 # no update, just call display()
53 self.display()
54
55 def done(self, message):
56 self.display(done_message = message)

Callers 14

bucket_createMethod · 0.80
object_putMethod · 0.80
object_copyMethod · 0.80
send_fileMethod · 0.80
recv_fileMethod · 0.80
__init__Method · 0.80
sign_request_v4Function · 0.80
checksum_file_descriptorFunction · 0.80
checksum_sha256_bufferFunction · 0.80
hash_file_md5Function · 0.80
calculateChecksumFunction · 0.80

Calls 1

displayMethod · 0.95

Tested by

no test coverage detected