(self, folder_name, destination=None)
| 91 | ''' |
| 92 | |
| 93 | def upload_folder(self, folder_name, destination=None): |
| 94 | print() |
| 95 | print('Uploading folder ' + folder_name) |
| 96 | if destination is None: |
| 97 | destination = folder_name |
| 98 | destination_item = self.get_child_folder(self.root_folder, destination) |
| 99 | |
| 100 | for file in os.listdir(folder_name): |
| 101 | path = os.path.join(folder_name, file) |
| 102 | if os.path.isfile(path): |
| 103 | self.upload_file(path, destination) |
| 104 | else: |
| 105 | folder = self.get_folder_from_path(destination) |
| 106 | child_destination = self.get_child_folder(folder, file) |
| 107 | self.upload_folder(path, os.path.join(destination, file)) |
| 108 | |
| 109 | ''' |
| 110 | Download entire folder named $folder_name from cloud to local folder named $to_folder. |
no test coverage detected