From 5d9fc12394233b008d38f43105d971a6ab8dfae6 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Sat, 10 Feb 2018 17:08:35 +0200 Subject: [PATCH] Modify createTempFile to make files to $TEMP by default refs #7761 Change-Id: I834187ce78d2c23d9a92ddb77e9a5257b826910f --- bundles/org.simantics.scl.runtime/scl/Files.scl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.simantics.scl.runtime/scl/Files.scl b/bundles/org.simantics.scl.runtime/scl/Files.scl index 92fb8c528..069076fef 100644 --- a/bundles/org.simantics.scl.runtime/scl/Files.scl +++ b/bundles/org.simantics.scl.runtime/scl/Files.scl @@ -76,7 +76,7 @@ importJava "java.nio.file.Files" where createDirectoriesWithFileAttributes :: Path -> Vector FileAttribute -> Path @JavaName createTempFile - createTempFileWithFileAttributes :: Path -> String -> String -> Vector FileAttribute -> Path + createTempFileWithFileAttributes :: String -> String -> Vector FileAttribute -> Path delete :: Path -> () @@ -138,8 +138,8 @@ createDirectory path = createDirectoryWithFileAttributes path (vector []) createDirectories :: Path -> Path createDirectories path = createDirectoriesWithFileAttributes path (vector []) -createTempFile :: Path -> String -> String -> Path -createTempFile dir prefix suffix = createTempFileWithFileAttributes dir prefix suffix (vector []) +createTempFile :: String -> String -> Path +createTempFile prefix suffix = createTempFileWithFileAttributes prefix suffix (vector []) copy :: Path -> Path -> Path copy source target = copyWithCopyOptions source target (vector []) -- 2.47.1