X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.runtime%2Fscl%2FFiles.scl;h=92fb8c528e8d5c7fc81ab2479f1453ae1277ae38;hb=b4c720aaf27b84a479d800ed8a1e130f924213ef;hp=ed413889ca4fbcbb53722139d58f741c82ca685a;hpb=0ad1451845e5859184330dd6718f32604c1b7825;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.runtime/scl/Files.scl b/bundles/org.simantics.scl.runtime/scl/Files.scl index ed413889c..92fb8c528 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 @@ -99,6 +113,7 @@ importJava "java.nio.file.Files" where copyToOutputStream :: Path -> OutputStream -> Long readAllBytes :: Path -> Vector Byte + write :: Path -> Vector Byte -> Vector OpenOption -> () @JavaName readAllLines readAllLinesWithCharset :: Path -> Charset -> [String]