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

Method _force

awscli/customizations/s3/subcommands.py:1346–1354  ·  view source on GitHub ↗

Calls rm --recursive on the given path.

(self, path, parsed_globals)

Source from the content-addressed store, hash-verified

1344 return 1
1345
1346 def _force(self, path, parsed_globals):
1347 """Calls rm --recursive on the given path."""
1348 rm = RmCommand(self._session)
1349 rc = rm([path, '--recursive'], parsed_globals)
1350 if rc != 0:
1351 raise RuntimeError(
1352 "remove_bucket failed: Unable to delete all objects in the "
1353 "bucket, bucket will not be deleted."
1354 )
1355
1356
1357class CommandArchitecture:

Callers 1

_run_mainMethod · 0.95

Calls 1

RmCommandClass · 0.85

Tested by

no test coverage detected