diff options
author | Paul Phillips <paulp@improving.org> | 2009-09-01 16:05:38 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-09-01 16:05:38 +0000 |
commit | cfed2479dcfb88b3ded652a73a8a5278bbc0e8cd (patch) | |
tree | 73de3c20e40fbcb633172e908219963e11ac49f3 /src/compiler/scala/tools/nsc/CompileSocket.scala | |
parent | 0ef9dbcef0a6a77388dd5bce78282b7892192019 (diff) | |
download | scala-cfed2479dcfb88b3ded652a73a8a5278bbc0e8cd.tar.gz scala-cfed2479dcfb88b3ded652a73a8a5278bbc0e8cd.tar.bz2 scala-cfed2479dcfb88b3ded652a73a8a5278bbc0e8cd.zip |
Changed createDirectory and createFile to accept a
failIfExists argument (defaults to false) and eliminated the very
short-lived ensureDirectory and ensureFile.
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompileSocket.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/CompileSocket.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileSocket.scala b/src/compiler/scala/tools/nsc/CompileSocket.scala index d65485d998..30b8882904 100644 --- a/src/compiler/scala/tools/nsc/CompileSocket.scala +++ b/src/compiler/scala/tools/nsc/CompileSocket.scala @@ -59,7 +59,7 @@ class CompileSocket { /** A temporary directory to use */ val tmpDir = { val udir = Option(Properties.userName) getOrElse "shared" - val f = (Path(Properties.tmpDir) / "scala-devel" / udir).ensureDirectory() + val f = (Path(Properties.tmpDir) / "scala-devel" / udir).createDirectory() if (f.isDirectory && f.canWrite) { info("[Temp directory: " + f + "]") @@ -69,7 +69,7 @@ class CompileSocket { } /* A directory holding port identification files */ - val portsDir = (tmpDir / dirName).ensureDirectory() + val portsDir = (tmpDir / dirName).createDirectory() /** Maximum number of polls for an available port */ private val MaxAttempts = 100 |