From f7498c9ae626b9ab654fe6eb736e19c62cf5d38d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 6 Jul 2026 10:14:39 +0300 Subject: refactor --- api/api.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api/api.go') diff --git a/api/api.go b/api/api.go index d82c2c8..f4ec70e 100644 --- a/api/api.go +++ b/api/api.go @@ -10,7 +10,7 @@ import ( // File creates a file resource. func File(path string, opts ...option.Option) resource.Resource { - return file.Have(path, opts...) + return file.Present(path, opts...) } // NoFile creates a file resource that is ensured to be absent. @@ -20,7 +20,7 @@ func NoFile(path string, opts ...option.Option) resource.Resource { // Dir creates a directory resource. func Dir(path string, opts ...option.Option) resource.Resource { - return dir.Have(path, opts...) + return dir.Present(path, opts...) } // NoDir creates a directory resource that is ensured to be absent. @@ -30,7 +30,7 @@ func NoDir(path string, opts ...option.Option) resource.Resource { // Link creates a link resource (symbolic or hard). func Link(path string, opts ...option.Option) resource.Resource { - return link.Have(path, opts...) + return link.Present(path, opts...) } // NoLink creates a link resource that is ensured to be absent. -- cgit v1.2.3