From d5358e979ad4ed53a58ebe8895d414797ea41c36 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 3 Apr 2012 08:56:28 -0400 Subject: [PATCH] Remove use of container/vector --- server/paths.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/paths.go b/server/paths.go index b0358da..b18359e 100644 --- a/server/paths.go +++ b/server/paths.go @@ -11,7 +11,6 @@ package server import ( "../config" - "container/vector" "errors" "os" "path" @@ -48,7 +47,7 @@ func IsValid(path string) (bool, string) { return err == nil && checkInJail(path), path } -func List(the_path string) (files vector.StringVector, err error) { +func List(the_path string) (files []string, err error) { full_path := canonicalizePath(the_path) if !checkInJail(full_path) { return nil, errors.New("Path outside of jail") @@ -73,7 +72,7 @@ func List(the_path string) (files vector.StringVector, err error) { if !gConfig.IncludeDotfiles && name[0] == '.' { continue } - files.Push(name) + files = append(files, name) } return files, nil } -- 2.22.5