feat: refactor deprecated WriteFile usage

This commit is contained in:
2025-05-18 19:33:59 +02:00
parent 17a5e98e77
commit 61d9d2e2d1
4 changed files with 2 additions and 6 deletions

View File

@@ -2,7 +2,6 @@ package system
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
)
@@ -17,7 +16,7 @@ func StoreFile(path string, content []byte) error {
}
// Write the file
if err := ioutil.WriteFile(path, content, 0644); err != nil {
if err := os.WriteFile(path, content, 0644); err != nil {
return fmt.Errorf("failed to write file: %v", err)
}