Assume a filename, and not a directory name like "/foo/bar/"
| 37 | |
| 38 | // Assume a filename, and not a directory name like "/foo/bar/" |
| 39 | static std::string GetDirName(const std::string& filename) { |
| 40 | size_t found = filename.find_last_of("/\\"); |
| 41 | if (found == std::string::npos) { |
| 42 | return ""; |
| 43 | } else { |
| 44 | return filename.substr(0, found); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | Status SyncDir(const std::string& dir) { |
| 49 | // As this is a test it isn't required to *actually* sync this directory. |
no outgoing calls
no test coverage detected