nicetoolbox.utils.check_and_exception.check_token_in_filepath

nicetoolbox.utils.check_and_exception.check_token_in_filepath(folder_name: str, token: str, description: str) None[source]

Check if a given token is present in a folder name.

Parameters:
  • folder_name (str) – The name of the folder to check.

  • token (str) – The token to search for in the folder name.

  • description (str) – A description of the folder for error messages.

Raises:

ValueError – If the token is not found in the folder name.

Returns:

None