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

Method __call__

awscli/s3transfer/crt.py:900–912  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

898 self._osutil = osutil
899
900 def __call__(self, **kwargs):
901 error = kwargs['error']
902 if error:
903 self._osutil.remove_file(self._temp_filename)
904 else:
905 try:
906 self._osutil.rename_file(
907 self._temp_filename, self._final_filename
908 )
909 except Exception as e:
910 self._osutil.remove_file(self._temp_filename)
911 # the CRT future has done already at this point
912 self._coordinator.set_exception(e)
913
914
915class AfterDoneHandler:

Callers

nothing calls this directly

Calls 3

remove_fileMethod · 0.45
rename_fileMethod · 0.45
set_exceptionMethod · 0.45

Tested by

no test coverage detected