Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Commit

Permalink
fix a bug that invalid convert to asset name if recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
oda committed Jul 21, 2015
1 parent 281d36d commit 94e9e44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 94e9e44

Please sign in to comment.