Reformats the parameters dictionary by including a key and value for the source and the destination. If a destination is not used the destination is the same as the source to ensure the destination always have some value.
(self, paths)
| 1769 | self.parameters['is_move'] = False |
| 1770 | |
| 1771 | def add_paths(self, paths): |
| 1772 | """ |
| 1773 | Reformats the parameters dictionary by including a key and |
| 1774 | value for the source and the destination. If a destination is |
| 1775 | not used the destination is the same as the source to ensure |
| 1776 | the destination always have some value. |
| 1777 | """ |
| 1778 | self.check_path_type(paths) |
| 1779 | self._normalize_s3_trailing_slash(paths) |
| 1780 | src_path = paths[0] |
| 1781 | self.parameters['src'] = src_path |
| 1782 | if len(paths) == 2: |
| 1783 | self.parameters['dest'] = paths[1] |
| 1784 | elif len(paths) == 1: |
| 1785 | self.parameters['dest'] = paths[0] |
| 1786 | self._validate_streaming_paths() |
| 1787 | self._validate_no_overwrite_for_download_streaming() |
| 1788 | self._validate_path_args() |
| 1789 | self._validate_sse_c_args() |
| 1790 | self._validate_not_s3_express_bucket_for_sync() |
| 1791 | |
| 1792 | def _validate_not_s3_express_bucket_for_sync(self): |
| 1793 | if self.cmd == 'sync' and ( |