def dir_attribs(location, mode=None, owner=None,<EOL>group=None, recursive=False, use_sudo=False):
args = '<STR_LIT>'<EOL>if recursive:<EOL><INDENT>args = args + '<STR_LIT>'<EOL><DEDENT>if mode:<EOL><INDENT>if use_sudo:<EOL><INDENT>sudo('<STR_LIT>' % (args, mode,  location))<EOL><DEDENT>else:<EOL><INDENT>run('<STR_LIT>' % (args, mode,  location))<EOL><DEDENT><DEDENT>if owner:<EOL><INDENT>if use_sudo:<EOL><INDENT>sudo('<STR_LIT>' % (args, owner, location))<EOL><DEDENT>else:<EOL><INDENT>run('<STR_LIT>' % (args, owner, location))<EOL><DEDENT><DEDENT>if group:<EOL><INDENT>if use_sudo:<EOL><INDENT>sudo('<STR_LIT>' % (args, group, location))<EOL><DEDENT>else:<EOL><INDENT>run('<STR_LIT>' % (args, group, location))<EOL><DEDENT><DEDENT>return True<EOL>
cuisine dir_attribs doesn't do sudo, so we implement our own
        Updates the mode/owner/group for the given remote directory.