Fix handling of individual files in subdirectories

pull/4/head
Maxim Ignatenko 2015-06-01 13:27:45 +01:00
parent 3ad80867de
commit a4f78e909c
1 changed files with 1 additions and 1 deletions

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