From bd6e1a8a70b99680625ade9276c615d77157cae9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 21 Jan 2014 20:51:07 -0800 Subject: [PATCH] Issue 60: weed export -collection doesn't work --- go/weed/export.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/weed/export.go b/go/weed/export.go index e6644adc7..2ab197652 100644 --- a/go/weed/export.go +++ b/go/weed/export.go @@ -82,6 +82,9 @@ func runExport(cmd *Command, args []string) bool { } fileName := strconv.Itoa(*exportVolumeId) + if *exportCollection!=""{ + fileName = *exportCollection + "_" + fileName + } vid := storage.VolumeId(*exportVolumeId) indexFile, err := os.OpenFile(path.Join(*exportVolumePath, fileName+".idx"), os.O_RDONLY, 0644) if err != nil {