MCPcopy Create free account
hub / github.com/aws/aws-cli / random_file_extension

Function random_file_extension

awscli/s3transfer/utils.py:47–48  ·  view source on GitHub ↗
(num_digits=8)

Source from the content-addressed store, hash-verified

45
46
47def random_file_extension(num_digits=8):
48 return ''.join(random.choice(string.hexdigits) for _ in range(num_digits))
49
50
51def signal_not_transferring(request, operation_name, **kwargs):

Callers 3

get_temp_filenameMethod · 0.70

Calls

no outgoing calls

Tested by 2