Comment on page
Directory Exists
This assertion type helps you to verify if a certain directory exists.
Provide a TRUE (1) as expected to check that the directory should exist.
directory_exists:
- name: "DocRoot exists"
directory: "/var/www/html"
expected: 1
Provide a FALSE (0) as expected to check that the directory does not exist at all.
directory_exists:
- name: "DocRoot must not exist"
directory: "/var/www/html/public"
expected: 0
Last modified 1yr ago