Fix course files

This commit is contained in:
joren
2026-03-11 20:06:46 +01:00
parent b8e6180b35
commit 9691ecd7a5

View File

@@ -112,7 +112,11 @@ func (c *Client) DownloadCourseFiles(root string) {
subDir := root
if !c.FilesOnly {
if safeFolderPath != "" && strings.ToLower(safeFolderPath) != "course files" {
subDir = filepath.Join(root, "Course Files", safeFolderPath)
} else {
subDir = filepath.Join(root, "Course Files")
}
}
os.MkdirAll(subDir, 0o755)
path := filepath.Join(subDir, utils.Sanitize(file.DisplayName))