MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / write_file_response

Function write_file_response

botasaurus_api/botasaurus_api/utils.py:52–58  ·  view source on GitHub ↗
(file_path, filename, content )

Source from the content-addressed store, hash-verified

50 return filename
51
52def write_file_response(file_path, filename, content ):
53 create_output_directory_if_not_exists()
54
55 fullpath = file_path + filename
56 with open(fullpath, 'wb') as file:
57 file.write(content)
58 return fullpath

Callers 1

download_task_resultsMethod · 0.85

Calls 2

writeMethod · 0.80

Tested by

no test coverage detected