<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_folder(self, folder):
 """ Sets the folder where the files to serve are located. """

        self.folder = folder
        self.templates.directories[0] = folder
        self.app.root_path = folder