Adds filewalker calls to CompileDir
This commit is contained in:
parent
2fcc9e8488
commit
0f1d0771ee
@ -25,7 +25,9 @@ import (
|
|||||||
// CompileDir compiles all lilypond files and makes all
|
// CompileDir compiles all lilypond files and makes all
|
||||||
// sheet music available in the OutputDir
|
// sheet music available in the OutputDir
|
||||||
func CompileDir(path string, opts *settings.Settings) {
|
func CompileDir(path string, opts *settings.Settings) {
|
||||||
|
// Find all scores
|
||||||
|
scores, collector := generateScores()
|
||||||
|
filepath.Walk(path, compilePath(path, opts, collector))
|
||||||
}
|
}
|
||||||
|
|
||||||
func generateScores() ([]*settings.Score, func(string, os.FileInfo) error) {
|
func generateScores() ([]*settings.Score, func(string, os.FileInfo) error) {
|
||||||
|
Reference in New Issue
Block a user