|
|
static std::string | CleanPath (const std::string &path) |
| |
| static bool | AddLocation (const std::string &location, bool prepend=true, const std::string &mountPoint="") |
| | Add a location to the search path.
|
| |
| static bool | RemoveLocation (const std::string &location) |
| | Remove a location from the search path.
|
| |
| static std::vector< std::string > | GetLocations () |
| | List all locations in the search path.
|
| |
| static bool | LocationExists (const std::string &location) |
| | Check if given location is in the search path.
|
| |
|
static bool | SetSaveLocation (const std::string &location) |
| |
|
static std::string | GetSaveLocation () |
| |
|
static std::unique_ptr< CSDLFileWrapper > | GetSDLFileHandler (const std::string &filename) |
| |
|
static std::unique_ptr< CSDLMemoryWrapper > | GetSDLMemoryHandler (const std::string &filename) |
| |
|
static std::unique_ptr< CSNDFileWrapper > | GetSNDFileHandler (const std::string &filename) |
| |
| static bool | Exists (const std::string &filename) |
| | Check if file exists.
|
| |
| static bool | DirectoryExists (const std::string &directory) |
| | Check if file exists and is a directory.
|
| |
| static bool | CreateNewDirectory (const std::string &directory) |
| | Create directory in write directory.
|
| |
| static bool | RemoveExistingDirectory (const std::string &directory) |
| | Remove directory in write directory, recursively.
|
| |
| static std::vector< std::string > | ListFiles (const std::string &directory, bool excludeDirs=false) |
| | List files contained in directory.
|
| |
| static std::vector< std::string > | ListDirectories (const std::string &directory) |
| | List directories contained in directory.
|
| |
| static long long | GetFileSize (const std::string &filename) |
| | Returns file size in bytes.
|
| |
| static long long | GetLastModificationTime (const std::string &filename) |
| | Returns last modification date as timestamp.
|
| |
| static bool | Remove (const std::string &filename) |
| | Remove file.
|
| |