From: jsimomaa Date: Wed, 29 Nov 2017 05:41:27 +0000 (+0200) Subject: Improve SCL Files API with parent and path resolving functions X-Git-Tag: v1.31.0~16 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F1267%2F2;p=simantics%2Fplatform.git Improve SCL Files API with parent and path resolving functions refs #7647 Change-Id: I783fa3029e48c73d93ac6bb320068bd28572da1d --- diff --git a/bundles/org.simantics.scl.runtime/scl/Files.scl b/bundles/org.simantics.scl.runtime/scl/Files.scl index ed413889c..6af9a1760 100644 --- a/bundles/org.simantics.scl.runtime/scl/Files.scl +++ b/bundles/org.simantics.scl.runtime/scl/Files.scl @@ -4,6 +4,20 @@ import "Charset" importJava "java.nio.file.Path" where data Path + + @JavaName "getParent" + getParentPath :: Path -> Path + + @JavaName "resolve" + resolvePath :: Path -> String -> Path + + @JavaName "relativize" + relativizePath :: Path -> Path -> Path + + toAbsolutePath :: Path -> Path + + @JavaName "toString" + pathToString :: Path -> String importJava "java.nio.file.Paths" where