mirror of
https://tildegit.org/solderpunk/molly-brown.git
synced 2025-08-05 16:59:11 +00:00
Fix parent directory walking logic to work at the DocRoot.
This commit is contained in:
parent
cb1e0da7d5
commit
7fb5ca052b
1 changed files with 3 additions and 3 deletions
|
@ -233,11 +233,11 @@ func parseMollyFiles(path string, info os.FileInfo, config *Config) {
|
||||||
}
|
}
|
||||||
dirs = append(dirs, path)
|
dirs = append(dirs, path)
|
||||||
for {
|
for {
|
||||||
subpath := filepath.Dir(path)
|
if path == filepath.Clean(config.DocBase) {
|
||||||
dirs = append(dirs, subpath)
|
|
||||||
if subpath == filepath.Clean(config.DocBase) {
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
subpath := filepath.Dir(path)
|
||||||
|
dirs = append(dirs, subpath)
|
||||||
path = subpath
|
path = subpath
|
||||||
}
|
}
|
||||||
// Parse files
|
// Parse files
|
||||||
|
|
Loading…
Add table
Reference in a new issue