| 6 | using namespace Star; |
| 7 | |
| 8 | void removeCommonPrefix(StringList& a, StringList& b) { |
| 9 | // Remove elements from a and b until there is one that differs. |
| 10 | while (a.size() > 0 && b.size() > 0 && a[0] == b[0]) { |
| 11 | a.eraseAt(0); |
| 12 | b.eraseAt(0); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | String createRelativePath(String fromFile, String toFile) { |
| 17 | if (!File::isDirectory(fromFile)) |
no test coverage detected