diff options
Diffstat (limited to 'src/modules/StorageBackendFile')
-rw-r--r-- | src/modules/StorageBackendFile/StorageBackendFile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/StorageBackendFile/StorageBackendFile.cpp b/src/modules/StorageBackendFile/StorageBackendFile.cpp index 0affc2c..e5da4e0 100644 --- a/src/modules/StorageBackendFile/StorageBackendFile.cpp +++ b/src/modules/StorageBackendFile/StorageBackendFile.cpp @@ -38,7 +38,7 @@ bool StorageBackendFile::handleConfigEntry(const Core::ConfigEntry &entry, bool if(!entry[2].isEmpty()) return false; - storageRoot = entry[1][0].extract(); + storageRoot = entry[1][0].toLocale(); } else if(!entry[1].isEmpty()) { return false; @@ -65,8 +65,8 @@ void StorageBackendFile::configFinished() { boost::filesystem::path StorageBackendFile::getFileName(const Core::String &type, const Core::String &name) { boost::filesystem::path path(storageRoot); - path /= type.extract(); - path /= Core::String(name + ".xml").extract(); + path /= type.toLocale(); + path /= Core::String(name + ".xml").toLocale(); return path; } @@ -101,7 +101,7 @@ std::set<Core::String> StorageBackendFile::list(const Core::String &type) throw std::set<Core::String> ret; boost::filesystem::path path(storageRoot); - path /= type.extract(); + path /= type.toLocale(); try { for(boost::filesystem::directory_iterator it(path); it != boost::filesystem::directory_iterator(); ++it) { |