@@ 9,7 9,6 @@ import (
const OK int = http.StatusOK
const NOT_FOUND int = http.StatusNotFound
-const COL_WIDTH int = 100
const ACCESSIBLE_DIR string = "/home/firefly/" // Accessible directory
const HELP = `
HELP
@@ 20,7 20,6 @@ func displayFolder(c echo.Context, path
tableString := &strings.Builder{}
table := tablewriter.NewWriter(tableString)
table.SetHeader([]string{"TYPE", "NAME", "SIZE"})
- table.SetColMinWidth(1, COL_WIDTH)
for _, file := range files {
if file.IsDir() {
table.Append([]string{"DIR", file.Name(), ByteCountSI(file.Size())})