WeBWorK::Utils::CourseDirectoryIntegrityCheck - Check that course directory structure is correct.
Usage: checkCourseDirectories($ce)
Checks the course directories to make sure they exist and have the correct permissions.
Usage: checkCourseLinks($ce)
Checks the course links to make sure they exist, and point to the correct path. Note that there are no checks for permissions. Permissions of symbolic links themselves don't matter and can't actually be changed, and the link targets are system directories that do not belong to the course. It is the responsibility of the system administrator to ensure that the system directories the links point to have the correct permissions. That should be done when webwork2 is installed, and not when upgrading a course.
Usage: updateCourseDirectories($ce)
Check to see if all course directories exist and have the correct permissions.
If a directory does not exist, then it is copied from the model course if the corresponding directory exists in the model course, and is created otherwise.
If the permissions are not correct, then an attempt is made to correct the permissions. The permissions are expected to match the course root directory. If the permissions of the course root directory are not correct, then that will need to be manually fixed. This method does not check that.
Usage: updateCourseLinks($ce)
Check to see if all course links exist and have the correct permissions.
If a link does not exist, then it is created according to the link specifications defined in the course environment.
Note that no attempt to fix permissions is made. Even the linux command line chmod
utility cannot change symbolic link permissions.