def safe_download(self):
        """
        Changes the FTP client's working directory, downloads the world, then switches back to the original working directory
        """
        old_dir = self._host.curdir
        self._host.chdir(self._worldname)
        self.download()
        self._host.chdir(old_dir)

        Changes the FTP client's working directory, downloads the world, then switches back to the original working directory
        
ftp_client.py