Fix archetype handling of directories in theme

Fixes #5318
This commit is contained in:
Bjørn Erik Pedersen
2018-10-26 09:41:24 +02:00
parent 6b78b3810a
commit 78578632f5
4 changed files with 43 additions and 12 deletions

View File

@@ -433,6 +433,9 @@ func (b *sourceFilesystemsBuilder) createFs(
}
if b.hasTheme {
if !strings.HasPrefix(themeFolder, filePathSeparator) {
themeFolder = filePathSeparator + themeFolder
}
themeFolderFs := newRealBase(afero.NewBasePathFs(b.themeFs, themeFolder))
if fs == nil {
fs = themeFolderFs