trivial fixes

This commit is contained in:
bronkuu 2026-06-02 23:39:03 +02:00
parent 8512c9e3d7
commit dd50d34703
17 changed files with 25 additions and 31 deletions

View file

@ -6,7 +6,7 @@ import (
"os"
)
func CopyFile(src, dst string) (string, error) {
func CopyIfNotExists(src, dst string) (string, error) {
_, err := os.Stat(dst)
if err == nil {
return dst, nil