mirror of https://github.com/aria2/aria2
parent
b519ce04e3
commit
89810a0a26
|
@ -2108,6 +2108,9 @@ std::string applyDir(const std::string& dir, const std::string& relPath)
|
|||
s += relPath;
|
||||
}
|
||||
else {
|
||||
while (s.back() == '/' || s.back() == '\\') {
|
||||
s.pop_back();
|
||||
}
|
||||
s += "/";
|
||||
s += relPath;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue