Commits

Thibaut Colar committed 25699a6

Fix for openFolder command

Comments (0)

Files changed (1)

src/brie/fan/util/FileUtil.fan

 
   static Uri pathIn(File dir, File x)
   {
-    x.uri.toStr[dir.uri.toStr.size..-1].toUri
+    if(dir.uri.toStr.size >= x.uri.toStr.size)
+      return ``
+    return x.uri.toStr[dir.uri.toStr.size..-1].toUri
   }
 
   ** Try to find a build file of type buildPod
     return false
   }
 
-}
+}