def save(<EOL>self,<EOL>copypath=None):
self.refresh<EOL>if copypath:<EOL><INDENT>self.filepath = copypath<EOL><DEDENT>content = self.content<EOL>import codecs<EOL>writeFile = codecs.open(self.filepath, encoding='<STR_LIT:utf-8>', mode='<STR_LIT:w>')<EOL>writeFile.write(content)<EOL>writeFile.close()<EOL>return None<EOL>
*save the content of the document back to the file*

        **Key Arguments:**
            - ``copypath`` -- the path to a new file if you want to make a copy of the document instead of saving it to the original filepath. Default *None*


        **Usage:**

            To save the document to file run:

            .. code-block:: python

                doc.save()

            Or to copy the content to another file run the save method with a new filepath as an argument:

            .. code-block:: python

                doc.save("/path/to/saturday-tasks-copy.taskpaper")