This class just encapsulates miscellaneous utility functions for working with UNIX paths (files and directories). More...
#include <DwmPathUtils.hh>
Static Public Member Functions | |
| static bool | IsDirectory (const std::string &path) |
Returns true if path is a directory. | |
| static bool | HasSuffix (const std::string &path, const std::string &suffix) |
Returns true if path is suffixed with suffix. | |
| static std::string | Basename (const std::string &path) |
This class just encapsulates miscellaneous utility functions for working with UNIX paths (files and directories).
|
static |
Returns true if path is suffixed with suffix.
For example, HasSuffix("foo.cc",".cc") would return true.
|
static |
Returns true if path is a directory.
Note that this will also return true if path is a symbolic link pointing to a directory.