def rmdir_course_workdir(course): try: dir_usercourse = Dirname.course(course) dir_util.remove_tree(dir_usercourse) except KeyError as e: logger.error("Cannot remove course dir, KOOPLEX['mountpoint']['usercourse'] is missing") except Exception as e: logger.error("Cannot remove course %s workdir -- %s" % (course, e))
def rmdir_course_workdir(course): try: dir_usercourse = Dirname.course(course) dir_util.remove_tree(dir_usercourse) except KeyError as e: logger.error( "Cannot remove course dir, KOOPLEX['mountpoint']['usercourse'] is missing" ) except Exception as e: logger.error("Cannot remove course %s workdir -- %s" % (course, e))
def garbagedir_course_share(course): dir_course = Dirname.course(course) garbage = Filename.course_garbage(course) _archivedir(dir_course, garbage)