summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/io/Path.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-23 21:16:51 +0000
committerPaul Phillips <paulp@improving.org>2010-02-23 21:16:51 +0000
commit3f9364fc49c537d4195b0f75a83442951b2a659a (patch)
tree3483910f90fd39a55e378485a7ed4238d0fc4332 /src/compiler/scala/tools/nsc/io/Path.scala
parent303a4b33f827514e89572c87334606b64083944f (diff)
downloadscala-3f9364fc49c537d4195b0f75a83442951b2a659a.tar.gz
scala-3f9364fc49c537d4195b0f75a83442951b2a659a.tar.bz2
scala-3f9364fc49c537d4195b0f75a83442951b2a659a.zip
The initial results of running a basic cut and ...
The initial results of running a basic cut and paste detector over trunk and trying to undo some of it. I can live with history but if I see Cutty McPastington in new commits I will get all finger waggly. Don't make me cross that ocean. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/io/Path.scala')
-rw-r--r--src/compiler/scala/tools/nsc/io/Path.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/io/Path.scala b/src/compiler/scala/tools/nsc/io/Path.scala
index 36784b6bc3..15550d2445 100644
--- a/src/compiler/scala/tools/nsc/io/Path.scala
+++ b/src/compiler/scala/tools/nsc/io/Path.scala
@@ -210,6 +210,12 @@ class Path private[io] (val jfile: JFile)
length == 0
}
+ def touch(modTime: Long = System.currentTimeMillis) = {
+ createFile()
+ if (isFile)
+ lastModified = modTime
+ }
+
// todo
// def copyTo(target: Path, options ...): Boolean
// def moveTo(target: Path, options ...): Boolean