Source:
<code>public void onRemoteOperationFinish(RemoteOperation operation, RemoteOperationResult result) { Log_OC.d(TAG, "Received result of operation in FileActivity - common behaviour for all the " + "FileActivities "); mFileOperationsHelper.setOpIdWaitingFor(Long.MAX_VALUE); dismissLoadingDialog(); if (!result.isSuccess() && ( result.getCode() == ResultCode.UNAUTHORIZED || (result.isException() && result.getException() instanceof AuthenticatorException) )) { requestCredentialsUpdate(); if (result.getCode() == ResultCode.UNAUTHORIZED) { showSnackMessage( ErrorMessageAdapter.getResultMessage(result, operation, getResources()) ); } } else if (!result.isSuccess() && ResultCode.SSL_RECOVERABLE_PEER_UNVERIFIED.equals(result.getCode())) { showUntrustedCertDialog(result); } else if (operation == null || operation instanceof CreateShareWithShareeOperation || operation instanceof RemoveShareOperation || operation instanceof SynchronizeFolderOperation || operation instanceof UpdateShareViaLinkOperation || operation instanceof UpdateSharePermissionsOperation ) { if (result.isSuccess()) { updateFileFromDB(); } else if (result.getCode() != ResultCode.CANCELLED) { showSnackMessage( ErrorMessageAdapter.getResultMessage(result, operation, getResources()) ); } } else if (operation instanceof SynchronizeFileOperation) { onSynchronizeFileOperationFinish((SynchronizeFileOperation) operation, result); } else if (operation instanceof GetSharesForFileOperation) { if (result.isSuccess() || result.getCode() == ResultCode.SHARE_NOT_FOUND) { updateFileFromDB(); } else { showSnackMessage( ErrorMessageAdapter.getResultMessage(result, operation, getResources()) ); } } else if (operation instanceof RenameFileOperation && result.isSuccess()) { result.getData(); } else if(operation instanceof CreateFolderOperation){ if(result.isException()){ <START> showSnackMessage("Hey"); <END> } } }</code><technical_language>D ... is purpose of this</technical_language>

Target:
public void onRemoteOperationFinish(RemoteOperation operation, RemoteOperationResult result) { Log_OC.d(TAG, "Received result of operation in FileActivity - common behaviour for all the " + "FileActivities "); mFileOperationsHelper.setOpIdWaitingFor(Long.MAX_VALUE); dismissLoadingDialog(); if (!result.isSuccess() && ( result.getCode() == ResultCode.UNAUTHORIZED || (result.isException() && result.getException() instanceof AuthenticatorException) )) { requestCredentialsUpdate(); if (result.getCode() == ResultCode.UNAUTHORIZED) { showSnackMessage( ErrorMessageAdapter.getResultMessage(result, operation, getResources()) ); } } else if (!result.isSuccess() && ResultCode.SSL_RECOVERABLE_PEER_UNVERIFIED.equals(result.getCode())) { showUntrustedCertDialog(result); } else if (operation == null || operation instanceof CreateShareWithShareeOperation || operation instanceof RemoveShareOperation || operation instanceof SynchronizeFolderOperation || operation instanceof UpdateShareViaLinkOperation || operation instanceof UpdateSharePermissionsOperation ) { if (result.isSuccess()) { updateFileFromDB(); } else if (result.getCode() != ResultCode.CANCELLED) { showSnackMessage( ErrorMessageAdapter.getResultMessage(result, operation, getResources()) ); } } else if (operation instanceof SynchronizeFileOperation) { onSynchronizeFileOperationFinish((SynchronizeFileOperation) operation, result); } else if (operation instanceof GetSharesForFileOperation) { if (result.isSuccess() || result.getCode() == ResultCode.SHARE_NOT_FOUND) { updateFileFromDB(); } else { showSnackMessage( ErrorMessageAdapter.getResultMessage(result, operation, getResources()) ); } } else if (operation instanceof RenameFileOperation && result.isSuccess()) { result.getData(); } }