[Swift-commit] r3599 - trunk/src/org/griphyn/vdl/karajan/lib

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Sep 3 21:25:42 CDT 2010


Author: hategan
Date: 2010-09-03 21:25:41 -0500 (Fri, 03 Sep 2010)
New Revision: 3599

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/OutFileDirs.java
Log:
skip empty dirs

Modified: trunk/src/org/griphyn/vdl/karajan/lib/OutFileDirs.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/OutFileDirs.java	2010-09-04 02:25:14 UTC (rev 3598)
+++ trunk/src/org/griphyn/vdl/karajan/lib/OutFileDirs.java	2010-09-04 02:25:41 UTC (rev 3599)
@@ -34,7 +34,12 @@
                 DSHandle leaf = handle.getField(p);
                 String fname = VDLFunction.filename(leaf)[0];
                 String dir = new AbsFile(fname).getDir();
-                ret.append(dir);
+                if (dir.startsWith("/") && dir.length() != 1) {
+                    ret.append(dir.substring(1));
+                }
+                else if (dir.length() != 0) {
+                    ret.append(dir);
+                }
             }
         }
         catch (Exception e) {




More information about the Swift-commit mailing list