summaryrefslogtreecommitdiff
path: root/internal/resource/file/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/resource/file/file.go')
-rw-r--r--internal/resource/file/file.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/resource/file/file.go b/internal/resource/file/file.go
index b3c1e44..257c407 100644
--- a/internal/resource/file/file.go
+++ b/internal/resource/file/file.go
@@ -244,3 +244,8 @@ func Have(path string, opts ...Option) resource.Resource {
return res
}
+
+func Absent(path string, opts ...Option) resource.Resource {
+ opts = append(opts, IsAbsent())
+ return Have(path, opts...)
+}