Fix rebuild when adding a bundle with space in name

Fixes #12092
This commit is contained in:
Bjørn Erik Pedersen 2024-02-21 17:04:32 +01:00
parent cf7023cb90
commit b8ab5c9be6
2 changed files with 25 additions and 2 deletions

View file

@ -195,9 +195,9 @@ func (c *pagesCollector) collectDir(dirPath *paths.Path, isDir bool, inFilter fu
var dpath string
if dirPath != nil {
if isDir {
dpath = filepath.FromSlash(dirPath.Path())
dpath = filepath.FromSlash(dirPath.Unnormalized().Path())
} else {
dpath = filepath.FromSlash(dirPath.Dir())
dpath = filepath.FromSlash(dirPath.Unnormalized().Dir())
}
}