Merge pull request #93 from gelraen/files
Fix handling of individual files in subdirectories
This commit is contained in:
commit
83a44d533b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user