From 0d456b750893ba26f4e30ac0d92a9a784b6d55a3 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 7 Dec 2024 21:50:53 -0500 Subject: [PATCH] providers/os: Change name of fileExists to exists --- providers/os/os.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/os/os.go b/providers/os/os.go index 7ef5849..79d5e32 100644 --- a/providers/os/os.go +++ b/providers/os/os.go @@ -28,7 +28,7 @@ type Provider struct { func (this *Provider) FuncMap () template.FuncMap { return template.FuncMap { "env": funcEnv, - "fileExists": funcFileExists, + "exists": funcExists, "isFile": funcIsFile, "isDir": funcIsDir, "statFile": funcStatFile, @@ -44,7 +44,7 @@ func funcEnv (name string) string { return os.Getenv(name) } -func funcFileExists (name string) (bool) { +func funcExists (name string) (bool) { _, err := os.Stat(name) return err == nil }