directory_absent
Ensure a directory's absence.
⚙️ Compatible targets: Linux, Windows
Parameters
Name | Documentation |
---|---|
path | Directory to remove. This parameter is required. |
recursive | Should deletion be recursive, "true" or "false" (defaults to "false"). This parameter is optional. |
Outcome conditions
You need to replace ${path}
with its actual canonified value.
- ✅ Ok:
directory_absent_${path}_ok
- ☑️ Already compliant:
directory_absent_${path}_kept
- 🟨 Repaired:
directory_absent_${path}_repaired
- ☑️ Already compliant:
- ❌ Error:
directory_absent_${path}_error
Example
method: directory_absent
params:
recursive: OPTIONAL_VALUE
path: VALUE
Documentation
If recursive
is false, only an empty directory can be deleted.