modelCDMLibrary::modelCDMLibrary(const std::string& path, const int& level)
{
- this->name = "library";
+ std::vector<std::string> words;
+ std::string delimiters;
+ //TODO::fix for windows
+ delimiters = "/";
+ CDMUtilities::splitter::split(words, path, delimiters, CDMUtilities::splitter::no_empties);
+ this->name = words[words.size()-1];
+
this->path = path;
this->type = wxDIR_DIRS;
this->level = level;