diff options
author | Thomas Nelson <rider@lindenlab.com> | 2017-10-17 13:38:39 -0700 |
---|---|---|
committer | Thomas Nelson <rider@lindenlab.com> | 2017-10-17 13:38:39 -0700 |
commit | 5754493cdcfeac76d0576abc19bdf5a03717780d (patch) | |
tree | e6db53ae1cd654f9b2a1a6b9ab47e01ea738ecef /indra/llvfs | |
parent | cc22ffc6d799544e8f2a9dfed6813081d908c88d (diff) | |
parent | 9c5becd67d7e6fe5f696dcae8690dd562b7b0449 (diff) |
Merged lindenlab/viewer64 into default
Diffstat (limited to 'indra/llvfs')
-rw-r--r-- | indra/llvfs/lldir.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/indra/llvfs/lldir.cpp b/indra/llvfs/lldir.cpp index 924e1166ee..b845de71fa 100644 --- a/indra/llvfs/lldir.cpp +++ b/indra/llvfs/lldir.cpp @@ -104,8 +104,13 @@ LLDir::~LLDir() std::vector<std::string> LLDir::getFilesInDir(const std::string &dirname) { //Returns a vector of fullpath filenames. - - boost::filesystem::path p (dirname); + +#ifdef LL_WINDOWS // or BOOST_WINDOWS_API + boost::filesystem::path p(utf8str_to_utf16str(dirname)); +#else + boost::filesystem::path p(dirname); +#endif + std::vector<std::string> v; if (exists(p)) @@ -193,7 +198,12 @@ U32 LLDir::deleteDirAndContents(const std::string& dir_name) try { - boost::filesystem::path dir_path(dir_name); +#ifdef LL_WINDOWS // or BOOST_WINDOWS_API + boost::filesystem::path dir_path(utf8str_to_utf16str(dir_name)); +#else + boost::filesystem::path dir_path(dir_name); +#endif + if (boost::filesystem::exists (dir_path)) { if (!boost::filesystem::is_empty (dir_path)) |