Skip to content
Snippets Groups Projects
Commit 359e9163 authored by Francois Henrotte's avatar Francois Henrotte
Browse files

corrected isPath()

parent 2ffff329
No related branches found
No related tags found
No related merge requests found
...@@ -1150,7 +1150,7 @@ std::string removeBlanks(const std::string &in) ...@@ -1150,7 +1150,7 @@ std::string removeBlanks(const std::string &in)
bool isPath(const std::string &in) bool isPath(const std::string &in)
{ {
size_t pos=in.find_last_not_of(" 0123456789"); size_t pos=in.find_last_not_of(" 0123456789");
if(in.compare(pos,1,dirSep)) if(in.compare(pos,1,"/"))
OLMsg::Fatal("The argument <%s> is not a valid path (must end with '/')",in.c_str()); OLMsg::Fatal("The argument <%s> is not a valid path (must end with '/')",in.c_str());
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment