A string with a ‘normcase’ property, suitable for passing to listdir(), dirs(), files(), walk(), walkdirs(), or walkfiles() to match case-insensitive.
For example, to get all files ending in .py, .Py, .pY, or .PY in the current directory:
from path import path, CaseInsensitivePattern as ci
path('.').files(ci('*.py'))