diff --git a/handlers.go b/handlers.go index 4e08d9d..9d111ad 100644 --- a/handlers.go +++ b/handlers.go @@ -15,7 +15,7 @@ func getResponse(path string) ([]Item, error) { } for i := range fileNames { - fileNames[i] = strings.TrimPrefix(filepath.ToSlash(fileNames[i]), filepath.ToSlash(config.WorkingDirectory)) + fileNames[i] = strings.TrimPrefix(filepath.ToSlash(fileNames[i]), filepath.ToSlash(config.WorkingDirectory))[1:] // TODO: check is first slash properly removed } items := make([]Item, 0)