This class provides functionality for working with files.
#include <utility/YiFile.h>
Static Public Member Functions | |
| static CYIString | ExtractFilenameFromPath (const CYIString &rPath) |
| static CYIString | ExtractParentFromPath (const CYIString &rPath) |
Parses the filename from the supplied path. The rPath provided can be absolute or relative. This function will return the name found after the last separator found in rPath. This function will return a empty string in the event that a name cannot be found, or if the path could not be parsed. This function will return the original path if the path does not contain the directory separator character.
Parses the containing directory's path from the supplied path. The rPath provided can be absolute or relative. This function will return the path found before the last separator found in rPath. This function will return a empty string in the event that a directory cannot be found, or if the path could not be parsed. The returned string may end with the directory separator character.