fix:修正带'的路径不能正确识别的问题。
This commit is contained in:
parent
ab00cffffd
commit
e5cc1056b9
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@ -125,6 +125,11 @@
|
|||||||
"queue": "cpp",
|
"queue": "cpp",
|
||||||
"resumable": "cpp",
|
"resumable": "cpp",
|
||||||
"numeric": "cpp",
|
"numeric": "cpp",
|
||||||
"set": "cpp"
|
"set": "cpp",
|
||||||
|
"*.tcc": "cpp",
|
||||||
|
"cwctype": "cpp",
|
||||||
|
"memory_resource": "cpp",
|
||||||
|
"random": "cpp",
|
||||||
|
"cinttypes": "cpp"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -20,9 +20,15 @@ std::vector<std::string> CFileOpr::get_file_list(const std::string& input)
|
|||||||
auto vec = COfStr::split(backup, "|");
|
auto vec = COfStr::split(backup, "|");
|
||||||
for (const auto& item : vec) {
|
for (const auto& item : vec) {
|
||||||
std::string ret(item);
|
std::string ret(item);
|
||||||
|
#ifdef _WIN32
|
||||||
if (item.find("\"") != std::string::npos) {
|
if (item.find("\"") != std::string::npos) {
|
||||||
ret = COfStr::replace(item, "\"", "");
|
ret = COfStr::replace(item, "\"", "");
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if (item.find(R"(')") != std::string::npos) {
|
||||||
|
ret = COfStr::replace(item, R"(')", "");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
result.push_back(COfPath::to_full(ret));
|
result.push_back(COfPath::to_full(ret));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user