def set_ignores(self, folder, *patterns):
if not patterns:<EOL><INDENT>return {}<EOL><DEDENT>data = {'<STR_LIT:ignore>': list(patterns)}<EOL>return self.post('<STR_LIT>', params={'<STR_LIT>': folder}, data=data)<EOL>
Applies ``patterns`` to ``folder``'s ``.stignore`` file.

            Args:
                folder (str):
                patterns (str):

            Returns:
                dict