Copyright © 2006 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
-#include <msp/strutils.h>
+#include <msp/strings/utils.h>
#include "path.h"
#include "utils.h"
path.erase(slash, string::npos);
}
}
- else if(comp!=".")
+ else if(comp!="." || path.empty())
{
+ if(path==".")
+ path="";
if(path.size()>1 || (path.size()==1 && path[0]!=DIRCHAR))
path+=DIRCHAR;
path+=comp;