|
|
|
@ -89,7 +89,7 @@ func handleDirectory(client *core.Client, file *os.File, p *core.Path) *errors.E
|
|
|
|
|
// Add directory heading, empty line and a back line
|
|
|
|
|
dirContents = append(dirContents, buildLine(typeInfo, "[ "+core.Hostname+p.Selector()+" ]", "TITLE", nullHost, nullPort)...)
|
|
|
|
|
dirContents = append(dirContents, buildInfoLine("")...)
|
|
|
|
|
dirContents = append(dirContents, buildLine(typeDirectory, "..", p.RelativeDir(), core.Hostname, core.Port)...)
|
|
|
|
|
dirContents = append(dirContents, buildLine(typeDirectory, "..", "/"+p.RelativeDir(), core.Hostname, core.Port)...)
|
|
|
|
|
|
|
|
|
|
// Scan directory and build lines
|
|
|
|
|
err = core.ScanDirectory(
|
|
|
|
|