| 917 | } |
| 918 | |
| 919 | void cleanFileName(std::string &file) |
| 920 | { |
| 921 | if (file.size() < 2) return; |
| 922 | bool networkpath = (file.substr(0, 2) == "\\\\"); |
| 923 | replaceAll(file, "\\\\", "\\"); |
| 924 | if (networkpath) file = std::string("\\") + file; |
| 925 | if (file.substr(file.size() - 1, 1) == dirsep) |
| 926 | file = file.substr(0, file.size() - 1); |
| 927 | } |
| 928 | |
| 929 | void cleanDirName(std::string &dir) |
| 930 | { |
no test coverage detected