From 5cd8adcb55ed1f9b0f5655b174eb142bf3c95dab Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Wed, 29 Nov 2017 07:41:27 +0200 Subject: [PATCH] Improve SCL Files API with parent and path resolving functions refs #7647 Change-Id: I783fa3029e48c73d93ac6bb320068bd28572da1d --- bundles/org.simantics.scl.runtime/scl/Files.scl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- 2.47.1