def scan(self, folder, sub=None, next_=None):
if not sub:<EOL><INDENT>sub = '<STR_LIT>'<EOL><DEDENT>assert isinstance(sub, string_types)<EOL>assert isinstance(next_, int) or next_ is None<EOL>return self.post('<STR_LIT>', params={'<STR_LIT>': folder,<EOL>'<STR_LIT>': sub,<EOL>'<STR_LIT>': next_})<EOL>
Request immediate rescan of a folder, or a specific path within a
        folder.

            Args:
                folder (str): Folder ID.
                sub (str): Path relative to the folder root. If sub is omitted
                    the entire folder is scanned for changes, otherwise only
                    the given path children are scanned.
                next_ (int): Delays Syncthing's automated rescan interval for
                    a given amount of seconds.

            Returns:
                str