Add a -i flag to force showing 'index.html' in the output listing; by default do not show them.
This commit is contained in:
@@ -245,9 +245,9 @@ func TestProcessDirWithDirAppend(t *testing.T) {
|
||||
|
||||
htmlContent := string(content)
|
||||
|
||||
// Check that directory links include index.html (URL escaped)
|
||||
if !strings.Contains(htmlContent, "subdir%2Findex.html") {
|
||||
t.Errorf("Directory links should include index.html when DirAppend is true. Expected subdir%%2Findex.html in content")
|
||||
// Check that directory links include index.html
|
||||
if !strings.Contains(htmlContent, "subdir/index.html") {
|
||||
t.Errorf("Directory links should include index.html when DirAppend is true. Expected subdir/index.html in content")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user