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
164
164
{
165
165
try
166
166
{
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)
168
168
{
169
169
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 ());
171
171
}
172
172
return true ;
173
173
}
@@ -202,9 +202,9 @@ namespace Lucene
202
202
{
203
203
try
204
204
{
205
- boost::filesystem::wpath join (path.c_str ());
205
+ boost::filesystem::path join (path.c_str ());
206
206
join /= file.c_str ();
207
- return join.directory_string ().c_str ();
207
+ return join.wstring ().c_str ();
208
208
}
209
209
catch (...)
210
210
{
@@ -217,7 +217,7 @@ namespace Lucene
217
217
try
218
218
{
219
219
boost::filesystem::wpath parentPath (path.c_str ());
220
- return parentPath.parent_path ().directory_string ().c_str ();
220
+ return parentPath.parent_path ().wstring ().c_str ();
221
221
}
222
222
catch (...)
223
223
{
@@ -230,7 +230,7 @@ namespace Lucene
230
230
try
231
231
{
232
232
boost::filesystem::wpath fileName (path.c_str ());
233
- return fileName.filename ().c_str ();
233
+ return fileName.filename ().wstring (). c_str ();
234
234
}
235
235
catch (...)
236
236
{
You can’t perform that action at this time.
0 commit comments