From d4247e0179f176a853d3dd964b0c2074026a7b35 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 6 Feb 2017 14:56:06 +0000 Subject: [PATCH] Dump to bugs subdirectory --- scripts/rageshake.go | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/rageshake.go b/scripts/rageshake.go index ebf94e67..df02f493 100644 --- a/scripts/rageshake.go +++ b/scripts/rageshake.go @@ -37,6 +37,7 @@ func respond(code int, w http.ResponseWriter) { } func gzipAndSave(data []byte, filepath string) error { + filepath = "bugs/" + filepath if _, err := os.Stat(filepath); err == nil { return fmt.Errorf("file already exists") // the user can just retry }