mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@7134 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
fe4756e9aa
commit
41a2914ec0
2 changed files with 11 additions and 4 deletions
|
|
@ -741,12 +741,13 @@ String NormalizePath(const char *path, const char *currdir) {
|
|||
}
|
||||
for(; i < si.GetCount(); i++) {
|
||||
String s = si[i];
|
||||
if(s != "." && !s.IsEmpty())
|
||||
if(s != "." && !s.IsEmpty()) {
|
||||
if(s[0] == '.' && s[1] == '.') {
|
||||
if(!p.IsEmpty()) p.Drop();
|
||||
}
|
||||
else
|
||||
p.Add(s);
|
||||
}
|
||||
}
|
||||
out.Cat(Join(p, DIR_SEPS));
|
||||
return out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue