def METHOD_NAME(self, username):
    default_repo_id = seafile_api.create_repo(name=_("My Library"),
                                              desc=_("My Library"),
                                              username=username)
    sys_repo_id = get_system_default_repo_id()
    if not sys_repo_id or not seafile_api.get_repo(sys_repo_id):
        return None
    dirents = seafile_api.list_dir_by_path(sys_repo_id, '/')
    for dirent in dirents:
        obj_name = dirent.obj_name
        seafile_api.copy_file(sys_repo_id, '/',
                              json.dumps([obj_name]),
                              default_repo_id, '/',
                              json.dumps([obj_name]),
                              username, 0)
    UserOptions.objects.set_default_repo(username, default_repo_id)
    return default_repo_id