Merge pull request #103 from tsu-ku-ne/master
fix a bug that invalid convert to asset name if recursive
This commit is contained in:
commit
14ba83ac84
|
@ -173,8 +173,9 @@ func findFiles(dir, prefix string, recursive bool, toc *[]Asset, ignore []*regex
|
||||||
|
|
||||||
if file.IsDir() {
|
if file.IsDir() {
|
||||||
if recursive {
|
if recursive {
|
||||||
|
recursivePath := filepath.Join(dir, file.Name())
|
||||||
visitedPaths[asset.Path] = true
|
visitedPaths[asset.Path] = true
|
||||||
findFiles(asset.Path, prefix, recursive, toc, ignore, knownFuncs, visitedPaths)
|
findFiles(recursivePath, prefix, recursive, toc, ignore, knownFuncs, visitedPaths)
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
} else if file.Mode()&os.ModeSymlink == os.ModeSymlink {
|
} else if file.Mode()&os.ModeSymlink == os.ModeSymlink {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user