Add a -i flag to force showing 'index.html' in the output listing; by default do not show them.
This commit is contained in:
@@ -101,11 +101,13 @@ func TestHTMLTemplate(t *testing.T) {
|
||||
Entries []FileEntry
|
||||
DirAppend bool
|
||||
OutputFile string
|
||||
IsRoot bool
|
||||
}{
|
||||
DirName: "test-dir",
|
||||
Entries: []FileEntry{},
|
||||
DirAppend: false,
|
||||
OutputFile: "index.html",
|
||||
IsRoot: false,
|
||||
}
|
||||
|
||||
var buf bytes.Buffer
|
||||
@@ -161,11 +163,13 @@ func TestHTMLTemplateWithEntries(t *testing.T) {
|
||||
Entries []FileEntry
|
||||
DirAppend bool
|
||||
OutputFile string
|
||||
IsRoot bool
|
||||
}{
|
||||
DirName: "test-dir",
|
||||
Entries: entries,
|
||||
DirAppend: false,
|
||||
OutputFile: "index.html",
|
||||
IsRoot: false,
|
||||
}
|
||||
|
||||
var buf bytes.Buffer
|
||||
|
||||
Reference in New Issue
Block a user