I'm trying to write a function in puppet that will do a fail
if the passed directory path does not exist.
if File["/some/path"]
always returns true, and if defined(File["/some/path"])
only returns true if the resource is defined in puppet, regardless of whether it actually exists.
Is there a way to do this with a simple if
statement?
Thanks