File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -164,10 +164,10 @@ namespace Lucene
164164 {
165165 try
166166 {
167- for (boost::filesystem::wdirectory_iterator dir (path.c_str ()); dir != boost::filesystem::wdirectory_iterator (); ++dir)
167+ for (boost::filesystem::directory_iterator dir (path.c_str ()); dir != boost::filesystem::directory_iterator (); ++dir)
168168 {
169169 if (!filesOnly || !boost::filesystem::is_directory (dir->status ()))
170- dirList.add (dir->path ().filename ().c_str ());
170+ dirList.add (dir->path ().filename ().wstring (). c_str ());
171171 }
172172 return true ;
173173 }
@@ -202,9 +202,9 @@ namespace Lucene
202202 {
203203 try
204204 {
205- boost::filesystem::wpath join (path.c_str ());
205+ boost::filesystem::path join (path.c_str ());
206206 join /= file.c_str ();
207- return join.directory_string ().c_str ();
207+ return join.wstring ().c_str ();
208208 }
209209 catch (...)
210210 {
@@ -217,7 +217,7 @@ namespace Lucene
217217 try
218218 {
219219 boost::filesystem::wpath parentPath (path.c_str ());
220- return parentPath.parent_path ().directory_string ().c_str ();
220+ return parentPath.parent_path ().wstring ().c_str ();
221221 }
222222 catch (...)
223223 {
@@ -230,7 +230,7 @@ namespace Lucene
230230 try
231231 {
232232 boost::filesystem::wpath fileName (path.c_str ());
233- return fileName.filename ().c_str ();
233+ return fileName.filename ().wstring (). c_str ();
234234 }
235235 catch (...)
236236 {
You can’t perform that action at this time.
0 commit comments