From 63212b9e89bc5b449e1dcb6e22307dbb59b21a27 Mon Sep 17 00:00:00 2001 From: xoy Date: Sun, 29 Jan 2023 16:16:07 +0100 Subject: [PATCH] fehlerbehebung --- file.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/file.go b/file.go index 2f82e43..9ce13f8 100644 --- a/file.go +++ b/file.go @@ -40,24 +40,3 @@ func fileCreate(filepath string) { logger("fileCreate : unknown -> " + filepath) } } - -func fileCreateDir(dirpath string) { - if _, err := os.Stat(dirpath); err == nil { - err := os.Mkdir(dirpath, 0755) - errorPanic(err) - logger("fileCreateDir : folder created -> " + dirpath) - } else if errors.Is(err, os.ErrNotExist) { - logger("fileCreateDir : folder not created -> " + dirpath) - } else { - logger("fileCreateDir : unknown -> " + dirpath) - } -} - -func fileExist(filepath string) bool { - if _, err := os.Stat(filepath); err == nil { - return true - } else if errors.Is(err, os.ErrNotExist) { - return false - } - return false -}