FileLister: handle '\\' path separator the same way '/' is handled
This commit is contained in:
parent
6b52ee03cf
commit
cc63506b03
|
@ -41,7 +41,7 @@ std::string FileLister::simplifyPath(const char *originalPath)
|
||||||
std::vector<std::string> pathParts;
|
std::vector<std::string> pathParts;
|
||||||
for (; *originalPath; ++originalPath)
|
for (; *originalPath; ++originalPath)
|
||||||
{
|
{
|
||||||
if (*originalPath == '/')
|
if (*originalPath == '/' || *originalPath == '\\')
|
||||||
{
|
{
|
||||||
if (subPath.length() > 0)
|
if (subPath.length() > 0)
|
||||||
{
|
{
|
||||||
|
@ -49,7 +49,7 @@ std::string FileLister::simplifyPath(const char *originalPath)
|
||||||
subPath = "";
|
subPath = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
pathParts.push_back("/");
|
pathParts.push_back(std::string(1 , *originalPath));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
subPath.append(1, *originalPath);
|
subPath.append(1, *originalPath);
|
||||||
|
|
Loading…
Reference in New Issue