Merge pull request #93 from gelraen/files

Fix handling of individual files in subdirectories
This commit is contained in:
Jim Teeuwen 2015-06-01 15:14:37 +02:00
commit 83a44d533b

View File

@ -134,7 +134,7 @@ func findFiles(dir, prefix string, recursive bool, toc *[]Asset, ignore []*regex
var list []os.FileInfo
if !fi.IsDir() {
dir = ""
dir = filepath.Dir(dir)
list = []os.FileInfo{fi}
} else {
visitedPaths[dir] = true