Fix handling of individual files in subdirectories

This commit is contained in:
Maxim Ignatenko 2015-06-01 13:27:45 +01:00
parent 3ad80867de
commit a4f78e909c

View File

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