Gets a listing of the CD directories on a system (not supported on all systems)
std::vector<std::string> getCDDirs()
Get the path to the directory that the application is running in.
std::string getBaseDir()
Get the path to the directory that the OS specifies for the user’s home.
std::string getUserDir()
Attempts to add a directory to the search path.
void addToSearchPath( const std:: string & dir, bool append = true )
Removes a directory from the search path, if it exists on the path.
void removeFromSearchPath( const std:: string & dir )
Obtain the currently configured search path.
std::vector<std::string> getSearchPath()
Sets the writing directory, used by mkdir and remove.
void setWriteDir( const std:: string & dir )
Attempts to create a directory.
bool mkdir( const std:: string & dir )
Attempts to remove a file or directory.
bool remove( const std:: string & item )
Gets the writing directory.
std::string getWriteDir()
Lists the contents of a directory.
std::vector<std::string> listDir( const std:: string & dir )
Checks if a file/directory exists.
bool exists( const std:: string & item )
Checks if a name refers to a directory.
bool isDir( const std:: string & item )
Checks if a name refers to a symbolic link.
bool isSymbolicLink( const std:: string & item )
Gets the system standard directory separator.
std::string getDirSeparator()
Enables or disables symbolic linking.
void permitSymbolicLinks( bool allow )
Gets last modification time for a file.
PHYSFS_sint64 getModTime( const std:: string & item )