Classes | |
class | file |
Functions | |
def | execfile |
def | exists |
def | getmtime |
def | getsize |
def | isdir |
def | isfile |
def | join |
def | lexists |
def | listdir |
def | walk |
Variables | |
list | __all__ |
tuple | _vfs = core.VirtualFileSystem.getGlobalPtr() |
open = file | |
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.
def direct.stdpy.file.execfile | ( | path, | |
globals = None , |
|||
locals = None |
|||
) |
def direct.stdpy.file.exists | ( | path | ) |
def direct.stdpy.file.getmtime | ( | path | ) |
def direct.stdpy.file.getsize | ( | path | ) |
def direct.stdpy.file.isdir | ( | path | ) |
def direct.stdpy.file.isfile | ( | path | ) |
def direct.stdpy.file.join | ( | path, | |
args | |||
) |
def direct.stdpy.file.lexists | ( | path | ) |
def direct.stdpy.file.listdir | ( | path | ) |
Implements os.listdir over vfs.
def direct.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.
list __all__ |
tuple _vfs = core.VirtualFileSystem.getGlobalPtr() |
open = file |