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

Method _same_key

awscli/customizations/s3/subcommands.py:1863–1866  ·  view source on GitHub ↗
(self, src, dest)

Source from the content-addressed store, hash-verified

1861 return src == os.path.join(dest, src_base)
1862
1863 def _same_key(self, src, dest):
1864 _, src_key = split_s3_bucket_key(src)
1865 _, dest_key = split_s3_bucket_key(dest)
1866 return self._same_path(f'/{src_key}', f'/{dest_key}')
1867
1868 def _validate_same_s3_paths_enabled(self):
1869 validate_env_var = ensure_boolean(

Calls 2

_same_pathMethod · 0.95
split_s3_bucket_keyFunction · 0.90

Tested by

no test coverage detected