diff --git a/.vscode/settings.json b/.vscode/settings.json index 1c24258..e206bc6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -125,6 +125,11 @@ "queue": "cpp", "resumable": "cpp", "numeric": "cpp", - "set": "cpp" + "set": "cpp", + "*.tcc": "cpp", + "cwctype": "cpp", + "memory_resource": "cpp", + "random": "cpp", + "cinttypes": "cpp" } } \ No newline at end of file diff --git a/client/file_oper.cpp b/client/file_oper.cpp index 34a86d8..bb52722 100644 --- a/client/file_oper.cpp +++ b/client/file_oper.cpp @@ -20,9 +20,15 @@ std::vector CFileOpr::get_file_list(const std::string& input) auto vec = COfStr::split(backup, "|"); for (const auto& item : vec) { std::string ret(item); +#ifdef _WIN32 if (item.find("\"") != std::string::npos) { 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)); } return result;