Panda3D
Functions
direct.stdpy.glob Namespace Reference

Functions

def escape (pathname)
 
def glob (pathname)
 
def glob0 (dirname, basename)
 
def glob1 (dirname, pattern)
 
def has_magic (s)
 
def iglob (pathname)
 

Detailed Description

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. 

Function Documentation

◆ escape()

def direct.stdpy.glob.escape (   pathname)

◆ glob()

def direct.stdpy.glob.glob (   pathname)
Return a list of paths matching a pathname pattern.

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

◆ glob0()

def direct.stdpy.glob.glob0 (   dirname,
  basename 
)

◆ glob1()

def direct.stdpy.glob.glob1 (   dirname,
  pattern 
)

◆ has_magic()

def direct.stdpy.glob.has_magic (   s)

◆ iglob()

def direct.stdpy.glob.iglob (   pathname)
Return an iterator which yields the paths matching a pathname pattern.

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