pymel.util.CaseInsensitivePattern

Inheritance diagram of CaseInsensitivePattern

class CaseInsensitivePattern

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'))
normcase

Previous topic

pymel.util.Callable

Next topic

pymel.util.Container

Core

Core Modules

Other Modules

This Page