MCPcopy Index your code
hub / github.com/O365/python-o365 / main

Function main

examples/onedrive_example.py:157–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155
156
157def main():
158 account = O365Account()
159 args = parse_arguments()
160 function_name = args.function
161 source = args.source
162 destination = args.destination
163
164 if function_name == 'download_file':
165 account.download_file(source, destination)
166 elif function_name == 'upload_file':
167 account.upload_file(source, destination)
168 elif function_name == 'download_folder':
169 account.download_folder(source, destination, args.file_type)
170 elif function_name == 'upload_folder':
171 account.upload_folder(source, destination)
172 else:
173 print('Invalid function name')
174
175
176if __name__ == '__main__':

Callers 1

Calls 6

download_fileMethod · 0.95
upload_fileMethod · 0.95
download_folderMethod · 0.95
upload_folderMethod · 0.95
O365AccountClass · 0.85
parse_argumentsFunction · 0.85

Tested by

no test coverage detected