mirror of https://github.com/vector-im/riot-web
Dump to bugs subdirectory
parent
af765c7522
commit
d4247e0179
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue