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

Method write_to_file

awscli/botocore/docs/bcdoc/restdoc.py:229–234  ·  view source on GitHub ↗
(self, full_path, file_name)

Source from the content-addressed store, hash-verified

227 return title_section
228
229 def write_to_file(self, full_path, file_name):
230 if not os.path.exists(full_path):
231 os.makedirs(full_path)
232 sub_resource_file_path = os.path.join(full_path, f'{file_name}.rst')
233 with open(sub_resource_file_path, 'wb') as f:
234 f.write(self.flush_structure())

Callers 4

_add_client_methodsMethod · 0.95
document_paginatorsMethod · 0.95
document_waitersMethod · 0.95

Calls 4

flush_structureMethod · 0.95
existsMethod · 0.80
makedirsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected