def cd(self, folder):
if folder.startswith('<STR_LIT:/>'):<EOL><INDENT>self._ftp.cwd(folder)<EOL><DEDENT>else:<EOL><INDENT>for subfolder in folder.split('<STR_LIT:/>'):<EOL><INDENT>if subfolder:<EOL><INDENT>self._ftp.cwd(subfolder)<EOL><DEDENT><DEDENT><DEDENT>
Changes the working directory on the server.

        :param folder: the desired directory.
        :type folder: string