()
| 155 | |
| 156 | |
| 157 | def 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 | |
| 176 | if __name__ == '__main__': |
no test coverage detected