1.1 --- a/vcs.profiles.teamware/src/org/netbeans/modules/vcs/profiles/teamware/commands/TeamwareRefreshRecursivelyCommand.java Sat Jun 11 07:01:05 2005 +0000
1.2 +++ b/vcs.profiles.teamware/src/org/netbeans/modules/vcs/profiles/teamware/commands/TeamwareRefreshRecursivelyCommand.java Sun Jun 12 09:22:52 2005 +0000
1.3 @@ -44,8 +44,9 @@
1.4 if (dirName != null) {
1.5 dir = new File(dir, dirName);
1.6 }
1.7 - String path = dir.toString().substring(root.toString().length());
1.8 - if (path.startsWith(File.separator)) {
1.9 + String path = dir.toString().substring(root.toString().length())
1.10 + .replace(File.separatorChar, '/');
1.11 + if (path.startsWith("/")) {
1.12 path = path.substring(1);
1.13 }
1.14 listDir(path, dir, filesByName, stdoutListener, stderrListener);
1.15 @@ -82,7 +83,7 @@
1.16 }
1.17 String subpath = path;
1.18 if (path.length() > 0) {
1.19 - subpath += File.separator;
1.20 + subpath += "/";
1.21 }
1.22 subpath += data[1];
1.23 if (files[i].isDirectory()) {