* Adds an ending slash to a path if necessary. * @param path Folder path. * @return Terminated path. */
| 482 | * @return Terminated path. |
| 483 | */ |
| 484 | std::string endPath(const std::string &path) |
| 485 | { |
| 486 | if (!path.empty() && path.at(path.size()-1) != PATH_SEPARATOR) |
| 487 | return path + PATH_SEPARATOR; |
| 488 | return path; |
| 489 | } |
| 490 | |
| 491 | /** |
| 492 | * Gets the name of all the files |