fix: Prevent creating directories again if they already exist

This commit is contained in:
Felicitas Pojtinger
2022-01-10 23:43:45 +01:00
parent 2487479433
commit 55d05e63e8
3 changed files with 38 additions and 28 deletions

View File

@@ -5,7 +5,6 @@ import (
"database/sql"
"io"
"io/fs"
"log"
"os"
"sync"
@@ -550,8 +549,6 @@ func (f *File) Write(p []byte) (n int, err error) {
n, err = f.writeBuf.Write(p)
if err != nil {
log.Fatal(err)
return -1, err
}