provide up-directory link in file listings
This commit is contained in:
parent
0a25e1a89c
commit
cbde81e759
@ -109,6 +109,7 @@ func genIndex(folder, rel string) ([]byte, error) {
|
||||
ret := bytes.NewBuffer([]byte{})
|
||||
|
||||
fmt.Fprintf(ret, "# %s\r\n\r\n", rel)
|
||||
fmt.Fprintf(ret, "=> %s %s\r\n", filepath.Join(rel, ".."), "..")
|
||||
for _, file := range files {
|
||||
fmt.Fprintf(ret, "=> %s %s\r\n", filepath.Join(rel, file.Name()), file.Name())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user