diff options
Diffstat (limited to 'upload-svr.go')
-rw-r--r-- | upload-svr.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/upload-svr.go b/upload-svr.go index efba0c9..2564f6b 100644 --- a/upload-svr.go +++ b/upload-svr.go @@ -93,14 +93,16 @@ func showIndex(w http.ResponseWriter, r *http.Request, msg string) { relpath += "/" } disppath := relpath + pad := "" if len(relpath) > maxFilenameLength { tail := "..>" if info.IsDir() { tail += "/" } disppath = disppath[:maxFilenameLength-len(tail)] + tail + } else { + pad = strings.Repeat(" ", maxFilenameLength-len(relpath)) } - pad := strings.Repeat(" ", maxFilenameLength-len(relpath)) sz := "-" if !info.IsDir() { sz = strconv.FormatInt(info.Size(), 10) |