Merge pull request #103 from tsu-ku-ne/master

fix a bug that invalid convert to asset name if recursive
pull/4/head
Jim Teeuwen 2015-07-21 11:10:03 +02:00
commit 14ba83ac84
1 changed files with 2 additions and 1 deletions

View File

@ -173,8 +173,9 @@ func findFiles(dir, prefix string, recursive bool, toc *[]Asset, ignore []*regex
if file.IsDir() {
if recursive {
recursivePath := filepath.Join(dir, file.Name())
visitedPaths[asset.Path] = true
findFiles(asset.Path, prefix, recursive, toc, ignore, knownFuncs, visitedPaths)
findFiles(recursivePath, prefix, recursive, toc, ignore, knownFuncs, visitedPaths)
}
continue
} else if file.Mode()&os.ModeSymlink == os.ModeSymlink {