file

Manage files/folders and their properties

Parameters

ParameterDescription
path
String
Required: true
Path of the file or folder that's managed
state
Enum of "file", "absent", "directory"
Required: false
Default to file

If file, a file will be managed.
If directory, a directory will be recursively created and all of its parent components if they are missing.
If absent, directories will be recursively deleted and all its contents, and files or symlinks will be unlinked.