macaroni

file condition

Description:
The file condition checks for the existence of a file on disk, and optionally checks the contents of the file.

Parent: all, any, condition, conditions, none, not , wait

Value (simple form): string specifying file name (checks for existence, contents irrelevant)
Value (key/value form):

# simple form
file: (string)

# simple example
file: '{folders.desktop}\favorites.txt'

# key/value form
file:
  name: (string)
  exists: (boolean, optional)
  contains: (string, optional)
  contents: (string, optional)

# key/value example
file:
  name: '{folders.desktop}\favorites.txt'
  contains: 'macaroni'