Browse Source

Issue 60: weed export -collection doesn't work

pull/2/head
Chris Lu 11 years ago
parent
commit
bd6e1a8a70
  1. 3
      go/weed/export.go

3
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 {

Loading…
Cancel
Save