fix: Prevent creating directories again if they already exist

This commit is contained in:
Felix Pojtinger
2022-01-10 23:43:45 +01:00
parent 442aa639a3
commit d8a907938d
3 changed files with 38 additions and 28 deletions
-3
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
}