+static void
+switchDirectorySeparators(gchar *path)
+{
+ size_t i, pathLength = strlen(path);
+
+ /* Turn all the slashes round the right way, except for \' */
+ /* There are probably other characters that need to be excluded as well. */
+ for (i = 0; i < pathLength; i++)
+ {
+ if (path[i] == '\\' && i < pathLength - 1 && path[i+1] != '\'' ) {
+ path[i] = '/';
+ }
+ }
+}
+