]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.runtime/scl/Files.scl
Improve SCL Files API with parent and path resolving functions
[simantics/platform.git] / bundles / org.simantics.scl.runtime / scl / Files.scl
index ed413889ca4fbcbb53722139d58f741c82ca685a..6af9a176022139ccc8d8ae7a8dcbbb41341ba960 100644 (file)
@@ -4,6 +4,20 @@ import "Charset"
 
 importJava "java.nio.file.Path" where
     data Path
+    
+    @JavaName "getParent"
+    getParentPath :: Path -> <Proc> Path
+    
+    @JavaName "resolve"
+    resolvePath :: Path -> String -> <Proc> Path
+
+    @JavaName "relativize"
+    relativizePath :: Path -> Path -> <Proc> Path
+    
+    toAbsolutePath :: Path -> <Proc> Path
+    
+    @JavaName "toString"
+    pathToString :: Path -> <Proc> String
 
 importJava "java.nio.file.Paths" where