'Set the name of the current folder.'

def setcontext(self, context):

    fn = os.path.join(self.getpath(), 'context')
    f = open(fn, 'w')
    f.write(('Current-Folder:    %s\n' % context))
    f.close()
