direct.stdpy.glob

import direct.stdpy.glob

This module reimplements Python’s native glob module using Panda vfs constructs. This enables Python to interface more easily with Panda’s virtual file system.

escape(pathname)[source]
glob(pathname)[source]

Return a list of paths matching a pathname pattern.

The pattern may contain simple shell-style wildcards a la fnmatch.

glob0(dirname, basename)[source]
glob1(dirname, pattern)[source]
has_magic(s)[source]
iglob(pathname)[source]

Return an iterator which yields the paths matching a pathname pattern.

The pattern may contain simple shell-style wildcards a la fnmatch.