| 1087 | return cmd.run() |
| 1088 | |
| 1089 | def _convert_path_args(self, parsed_args): |
| 1090 | if not isinstance(parsed_args.paths, list): |
| 1091 | parsed_args.paths = [parsed_args.paths] |
| 1092 | for i in range(len(parsed_args.paths)): |
| 1093 | path = parsed_args.paths[i] |
| 1094 | if isinstance(path, bytes): |
| 1095 | dec_path = path.decode(sys.getfilesystemencoding()) |
| 1096 | enc_path = dec_path.encode('utf-8') |
| 1097 | new_path = enc_path.decode('utf-8') |
| 1098 | parsed_args.paths[i] = new_path |
| 1099 | |
| 1100 | def _get_params(self, parsed_args, parsed_globals, session): |
| 1101 | cmd_params = CommandParameters( |