'Create a new folder (or raise os.error if it cannot be created).'

def makefolder(self, name):

    protect = pickline(self.profile, 'Folder-Protect')
    if (protect and isnumeric(protect)):
        mode = int(protect, 8)
    else:
        mode = FOLDER_PROTECT
    os.mkdir(os.path.join(self.getpath(), name), mode)
