impl-me #4

Merged
Joren merged 3 commits from impl-me into main 2026-03-11 20:10:56 +01:00
Showing only changes of commit 9691ecd7a5 - Show all commits

View File

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