MCPcopy Create free account
hub / github.com/aws/aws-cli / _convert_path_args

Method _convert_path_args

awscli/customizations/s3/subcommands.py:1089–1098  ·  view source on GitHub ↗
(self, parsed_args)

Source from the content-addressed store, hash-verified

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(

Callers 1

_run_mainMethod · 0.95

Calls 2

decodeMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected