mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-02 21:32:46 +00:00
Dump to bugs subdirectory
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user