This commit is contained in:
2024-03-05 18:46:27 +01:00
parent f634a83bde
commit 7ba9c8cd6a
5 changed files with 77 additions and 0 deletions

11
fs/file.go Normal file
View File

@ -0,0 +1,11 @@
package fs
import (
"errors"
"os"
)
func PathExists(path string) bool {
_, err := os.Stat(path)
return !errors.Is(err, os.ErrNotExist)
}

3
fs/go.mod Normal file
View File

@ -0,0 +1,3 @@
module gitea.codeblob.work/pk/gut/fs
go 1.22.0