diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/io/VirtualDirectory.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/io/VirtualDirectory.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/io/VirtualDirectory.scala b/src/compiler/scala/tools/nsc/io/VirtualDirectory.scala index 403d59d289..53346df53c 100644 --- a/src/compiler/scala/tools/nsc/io/VirtualDirectory.scala +++ b/src/compiler/scala/tools/nsc/io/VirtualDirectory.scala @@ -17,6 +17,9 @@ extends AbstractFile { case None => name case Some(parent) => parent.path+'/'+ name } + + def absolute = this + def container = maybeContainer.get def isDirectory = true var lastModified: Long = System.currentTimeMillis @@ -27,6 +30,22 @@ extends AbstractFile { override def input = error("directories cannot be read") override def output = error("directories cannot be written") + /** Does this abstract file denote an existing file? */ + def create { + throw new UnsupportedOperationException + } + + /** Delete the underlying file or directory (recursively). */ + def delete { + throw new UnsupportedOperationException + } + + /** Returns an abstract file with the given name. It does not + * check that it exists. + */ + def lookupNameUnchecked(name: String, directory: Boolean): AbstractFile = + throw new UnsupportedOperationException() + private val files = mut.Map.empty[String, AbstractFile] // the toList is so that the directory may continue to be |