private Path MakeSlashedPath(Path path) { // Make sure that the path is ended bith '\' int index = path.IndexOf(':'); if ((index != -1) && ((index + 1) == path.Length)) { path += '\\'; } return path; }