LSMS/scripts/config/search_immutable_files.py

22 lines
851 B
Python
Raw Normal View History

2021-12-27 13:52:26 +01:00
from typing import List
# List of directories to search for immutablle files. Defaults to "/".
SEARCH_LOCATIONS = [] # type: List[str]
# To prevent a timeout if this script is run regularly for monitoring,
# the search can be done in steps for each location given in SEARCH_LOCATIONS.
# Steps mean if you have location_A, the first execution of this script will
# process location_A non-recursively and terminates,
# the second execution will process location_A/subdir_A recursively and terminates,
# the third execution will process location_A/subdir_B recursively and terminates and so on.
SEARCH_IN_STEPS = False
# List of directories to ignore.
IMMUTABLE_DIRECTORY_WHITELIST = [] # type: List[str]
# List of immutable files to ignore.
IMMUTABLE_FILE_WHITELIST = [] # type: List[str]
# Is the script allowed to run or not?
ACTIVATED = True