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

Method _same_path

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

Source from the content-addressed store, hash-verified

1852 os.makedirs(params['dest'])
1853
1854 def _same_path(self, src, dest):
1855 if not self.parameters['paths_type'] == 's3s3':
1856 return False
1857 elif src == dest:
1858 return True
1859 elif dest.endswith('/'):
1860 src_base = os.path.basename(src)
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)

Callers 2

_same_keyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected