* Returns the directory component of a path. See dirname(3) for details. * * @param path The full path. * @returns The directory. */
| 258 | * @returns The directory. |
| 259 | */ |
| 260 | String Utility::DirName(const String& path) |
| 261 | { |
| 262 | return boost::filesystem::path(path.Begin(), path.End()).parent_path().string(); |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * Returns the file component of a path. See basename(3) for details. |