http.Error(w, err.Error(), http.StatusInternalServerError)
return false
}
+ if err = DirSync(dirPath); err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return false
+ }
}
if filename == filenameGet || gpgUpdate {
if _, err = os.Stat(path); err == nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
+ if err = DirSync(dirPath); err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
if err = WriteFileSync(dirPath, path+SHA256Ext, digest); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return