def to_stream(self, fs):
if self.overwrite: <EOL><INDENT>fd, temp = tempfile.mkstemp()<EOL>os.close(fd)<EOL>self._to(temp, fs)<EOL>self.output.seek(self.initial_position)<EOL>with open(temp, '<STR_LIT:rb>') as f:<EOL><INDENT>shutil.copyfileobj(f, self.output)<EOL><DEDENT>os.remove(temp)<EOL><DEDENT>else:<EOL><INDENT>self._to(self.output, fs)<EOL><DEDENT>
Save the given FS, considering ``self.output`` as a stream.

        Parameters:
            fs (`fs.base.FS`): the filesystem to save in the archive.