2023-11-20 14:14:09 +01:00
|
|
|
package file
|
|
|
|
|
|
|
|
import "path/filepath"
|
|
|
|
|
|
|
|
var (
|
|
|
|
DefaultBaseDir = "data"
|
|
|
|
DefaultQuizzesSubdir = "quizzes"
|
|
|
|
DefaultCollectionsSubdir = "collections"
|
|
|
|
DefaultParticipantsSubdir = "participants"
|
2023-11-21 15:12:13 +01:00
|
|
|
DefaultGroupsSubdir = "groups"
|
2023-11-28 16:19:49 +01:00
|
|
|
DefaultExamsSubdir = "exams"
|
2023-11-20 14:14:09 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func GetDefaultQuizzesDir() string {
|
|
|
|
return filepath.Join(DefaultBaseDir, DefaultQuizzesSubdir)
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetDefaultCollectionsDir() string {
|
|
|
|
return filepath.Join(DefaultBaseDir, DefaultCollectionsSubdir)
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetDefaultParticipantsDir() string {
|
|
|
|
return filepath.Join(DefaultBaseDir, DefaultParticipantsSubdir)
|
|
|
|
}
|
2023-11-21 15:12:13 +01:00
|
|
|
|
|
|
|
func GetDefaultGroupsDir() string {
|
|
|
|
return filepath.Join(DefaultBaseDir, DefaultGroupsSubdir)
|
|
|
|
}
|
2023-11-28 16:19:49 +01:00
|
|
|
|
|
|
|
func GetDefaultExamsDir() string {
|
|
|
|
return filepath.Join(DefaultBaseDir, DefaultExamsSubdir)
|
|
|
|
}
|