This function compares the actual directory structure with a predefined expected structure
and returns TRUE if they match, otherwise FALSE. If verbose is TRUE, it prints
detailed information about missing or extra files/directories.
check_directory_structure(
root_path,
expected_structure,
only_missing = TRUE,
verbose = FALSE
)A logical value: TRUE if the directory structure matches the expected structure,
otherwise FALSE.
A character string specifying the root directory to check.
A character vector specifying the expected directory structure. Each element should be a relative path (e.g., "data/raw").
Only check the missing files/directories.
A logical value. If TRUE, prints detailed information; if FALSE, suppresses output.