diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-27 20:01:04 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-27 20:01:04 +0200 |
commit | 776544e63ed9a7a2c90c6b26f847b18882ee5146 (patch) | |
tree | 8ef881b77ae2be15fb0533cff4da671d660cc8a1 /plugingui/directory.cc | |
parent | 72662f3eee9ba918b623c5e7ba93c5c3b758d8dc (diff) |
Missing SEP conversions.
Diffstat (limited to 'plugingui/directory.cc')
-rw-r--r-- | plugingui/directory.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/plugingui/directory.cc b/plugingui/directory.cc index 18ec336..85e34aa 100644 --- a/plugingui/directory.cc +++ b/plugingui/directory.cc @@ -58,6 +58,11 @@ Directory::~Directory() { } +std::string Directory::seperator() +{ + return SEP; +} + void Directory::setPath(std::string path) { DEBUG(directory, "Setting path to '%s'\n", path.c_str()); @@ -149,7 +154,7 @@ Directory::EntryList Directory::listFiles(std::string path) entrypath += entry->d_name; if(Directory::isDir(entrypath)) { if(name == "..") directories.push_back(entry->d_name); - else directories.push_back(std::string("/") + entry->d_name); + else directories.push_back(std::string(SEP) + entry->d_name); } else { int drumkit_suffix_length = strlen(DRUMKIT_SUFFIX); @@ -223,7 +228,7 @@ bool Directory::isRoot(std::string path) return false; } #else - if(path == "/") return true; + if(path == SEP) return true; else return false; #endif } @@ -242,7 +247,7 @@ std::string Directory::root(std::string path) return path.substr(0, 2); } #else - return "/"; + return SEP; #endif } |