def delete_file(self, path, prefixed_path, source_storage):
if isinstance(self.storage, CumulusStorage):<EOL><INDENT>if self.storage.exists(prefixed_path):<EOL><INDENT>try:<EOL><INDENT>etag = self.storage._get_object(prefixed_path).etag<EOL>digest = "<STR_LIT>".format(hashlib.md5(source_storage.open(path).read()).hexdigest())<EOL>if etag == digest:<EOL><INDENT>self.log(u"<STR_LIT>".format(path))<EOL>return False<EOL><DEDENT><DEDENT>except:<EOL><INDENT>raise<EOL><DEDENT><DEDENT><DEDENT>return super(Command, self).delete_file(path, prefixed_path, source_storage)<EOL>
Checks if the target file should be deleted if it already exists