is_filename_valid# is_filename_valid(product_path: str | CloudPath | Path, regex: list | Pattern) → bool[source]# Check if the filename corresponds to the given satellite regex. Checks also if a file inside the directory is correct. Warning Two levels maximum for the moment Parameters: product_path (AnyPathStrType) – Product path regex (Union[list, Pattern]) – Regex or list of regex Returns: True if the filename corresponds to the given satellite regex Return type: bool