Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
47
def
random_file_extension(num_digits=8):
48
return
''
.join(random.choice(string.hexdigits)
for
_ in range(num_digits))
49
50
51
def
signal_not_transferring(request, operation_name, **kwargs):
Callers
3
test_has_proper_length
Method · 0.90
test_has_proper_length
Method · 0.90
get_temp_filename
Method · 0.70
Calls
no outgoing calls
Tested by
2
test_has_proper_length
Method · 0.72
test_has_proper_length
Method · 0.72