Fix handling of individual files in subdirectories
This commit is contained in:
parent
3ad80867de
commit
a4f78e909c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user