|
|
| FilePath (const std::string &file="") |
| |
|
bool | operator== (const FilePath &fp) const |
| |
|
void | setPath (const std::string &path) |
| |
| bool | hasParent () |
| |
|
void | clear () |
| |
|
bool | toParent () |
| | Change the path one level up.
|
| |
|
std::string | fullPath () const |
| | Return the full path, including root drive/network address.
|
| |
|
std::string | filePath () const |
| | Return the file path only, without root drive/network address.
|
| |
|
bool | exists () const |
| |
|
bool | isDirectory () const |
| |
|
bool | isAbsolute () const |
| |
|
std::string | fileName () const |
| |
|
std::string | directoryPath () const |
| |
|
bool | getFilesInDirectory (std::vector< FilePath > &files) const |
| |
|
FilePath | appendPath (const std::string &subPath) const |
| | Returns new FilePath that includes "subPath".
|
| |
|
std::string | fileExt () const |
| | Returns the file extension, including the ".", for example ".cpp".
|
| |
| std::string | baseName () const |
| | Returns file name without extension.
|
| |
|
std::string | root () const |
| |
|
bool | createDirectory () |
| |
|
|
static std::string | fileName (const std::string &file) |
| |
|
static std::string | baseName (const std::string &file) |
| |
|
static std::string | dirPath (const std::string &file) |
| |
|
static std::string | joinPath (const std::string &p1, const std::string &p2) |
| |
|
static std::string | extension (const std::string &file) |
| | Returns the file extension for the given path, including the ".", for example ".cpp".
|
| |
|
static FilePath | getParent (const FilePath &p) |
| |
|
static FilePath | appendPath (const FilePath &p1, const std::string &s) |
| |
|
static bool | fileExists (const std::string &file) |
| |
|
static bool | isDirectory (const std::string &file) |
| |
|
static bool | filesInDirectory (const FilePath &p, std::vector< FilePath > &files) |
| |
|
static bool | createDirectory (const std::string &path) |
| |
|
static FilePath | getCurrentPath () |
| |
FileInfo - Short description. Detailed description.