Panda3D
Functions
virtualFileSystem.I File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

Go to the source code of this file.

Functions

 PT (VirtualFileList) VirtualFileSystem
 If the file represents a directory (that is, is_directory() returns true), this returns the list of files within the directory at the current time. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2002-08-03

Definition in file virtualFileSystem.I.

Function Documentation

◆ PT()

PT ( VirtualFileList  )
inline

If the file represents a directory (that is, is_directory() returns true), this returns the list of files within the directory at the current time.

Returns NULL if the file is not a directory or if the directory cannot be read. Convenience function; lists the files within the indicated directory. Convenience function; lists the files within the indicated directory, and all files below, recursively. Convenience function; returns the entire contents of the indicated file as a string.

If auto_unwrap is true, an explicitly-named .pz/.gz file is automatically decompressed and the decompressed contents are returned. This is different than vfs-implicit-pz, which will automatically decompress a file if the extension .pz is *not* given. Convenience function; writes the entire contents of the indicated file as a string.

If auto_wrap is true, an explicitly-named .pz file is automatically compressed while writing.

Definition at line 48 of file virtualFileSystem.I.

Referenced by VirtualFileSystem::is_directory(), VirtualFileSystem::is_regular_file(), and VirtualFileSystem::read_file().