Static Public Methods |
std::string | getFilename (const std::string &filename) |
| Retrieve the associated file name. More...
|
std::string | getPath (const std::string &filename) |
| Retrieve the associated file path with the trailing slash. More...
|
bool | isDirectory (const std::string &filename) |
| Just to know if it is a directory. More...
|
bool | fileExists (const std::string &filename) |
| Return true if the file exists. More...
|
bool | isExists (const std::string &filename) |
| Return true if the file OR directory exists. More...
|
std::string | findNewFile (const std::string &filename) |
| Return a new filename that doesn't exists. More...
|
int | getLastSeparator (const std::string &filename) |
| Return the position between [begin,end[ of the last separator between path and filename ('/' or '\'). More...
|
std::string | getFilenameWithoutExtension (const std::string &filename) |
std::string | getExtension (const std::string &filename) |
uint32 | getFileSize (const std::string &filename) |
| Return the size of the file (in bytes). More...
|
uint32 | getFileModificationDate (const std::string &filename) |
| Return Time of last modification of file. More...
|
uint32 | getFileCreationDate (const std::string &filename) |
| Return creation Time of the file. More...
|
void | addFileChangeCallback (const std::string &filename, void(*)(const std::string &filename)) |
| Add a callback that will be call when the content file, named filename, changed. More...
|
void | checkFileChange (TTime frequency=1000) |
| You have to call this function evenly (each frame for example) to enable the file change callback system. More...
|
bool | copyFile (const char *dest, const char *src, bool failIfExists=false) |
| Copy a file NB this keeps file attributes. More...
|
bool | moveFile (const char *dest, const char *src) |
| Move a file NB this keeps file attributes. More...
|
bool | createDirectory (const std::string &dirname) |
| create a directory. More...
|