[Swift-commit] r3598 - trunk/src/org/griphyn/vdl/karajan/lib
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Fri Sep 3 21:25:15 CDT 2010
Author: hategan
Date: 2010-09-03 21:25:14 -0500 (Fri, 03 Sep 2010)
New Revision: 3598
Modified:
trunk/src/org/griphyn/vdl/karajan/lib/InFileDirs.java
Log:
skip empty dirs
Modified: trunk/src/org/griphyn/vdl/karajan/lib/InFileDirs.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/InFileDirs.java 2010-09-03 21:57:20 UTC (rev 3597)
+++ trunk/src/org/griphyn/vdl/karajan/lib/InFileDirs.java 2010-09-04 02:25:14 UTC (rev 3598)
@@ -28,10 +28,14 @@
for (Object f : files) {
String path = (String) f;
String dir = new AbsFile(path).getDir();
- if (dir.startsWith("/")) {
+ // there could be a clash here since
+ // "/a/b/c.txt" would be remotely the same
+ // as "a/b/c.txt". Perhaps absolute paths
+ // should have a unique prefix.
+ if (dir.startsWith("/") && dir.length() != 1) {
ret.append(dir.substring(1));
}
- else {
+ else if (dir.length() != 0) {
ret.append(dir);
}
}
More information about the Swift-commit
mailing list