Panda3D
Classes | Functions | Variables

Package stdpy.file

Classes

class  file

Functions

def exists
def getmtime
def getsize
def isdir
def isfile
def join
def lexists
def listdir
def walk

Variables

list __all__
tuple _vfs = pm.VirtualFileSystem.getGlobalPtr()
 open = file

Detailed Description

This module reimplements Python's file I/O mechanisms using Panda
constructs.  This enables Python to interface more easily with Panda's
virtual file system, and it also better-supports Panda's
SIMPLE_THREADS model, by avoiding blocking all threads while waiting
for I/O to complete. 

Function Documentation

def stdpy.file.exists (   path)
def stdpy.file.getmtime (   path)
def stdpy.file.getsize (   path)
def stdpy.file.isdir (   path)
def stdpy.file.isfile (   path)
def stdpy.file.join (   a,
  b 
)
def stdpy.file.lexists (   path)
def stdpy.file.listdir (   path)
Implements os.listdir over vfs. 
def stdpy.file.walk (   top,
  topdown = True,
  onerror = None,
  followlinks = True 
)
Implements os.walk over vfs.

Note: we don't support onerror or followlinks; errors are ignored
and links are always followed. 

Variable Documentation

list __all__
Initial value:
00001 [
00002     'file', 'open', 'listdir', 'walk', 'join',
00003     'isfile', 'isdir', 'exists', 'lexists', 'getmtime', 'getsize',
00004     ]
tuple _vfs = pm.VirtualFileSystem.getGlobalPtr()
 All Classes Namespaces Functions Variables Properties