Lowercase errors masterrace.

This commit is contained in:
Florian Nücke 2015-12-27 14:54:34 +01:00
parent 7c2a0541e4
commit 326bafca1d
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ trait FileInputStreamFileSystem extends InputStreamFileSystem {
case file if file.exists() && file.isFile => Array(file.getName)
case directory if directory.exists() && directory.isDirectory && directory.list() != null =>
directory.listFiles().map(file => if (file.isDirectory) file.getName + "/" else file.getName)
case _ => throw new io.FileNotFoundException("No such file or directory: " + path)
case _ => throw new io.FileNotFoundException("no such file or directory: " + path)
}
// ----------------------------------------------------------------------- //

View File

@ -33,8 +33,8 @@ private class ReadOnlyWrapper(val fileSystem: api.fs.FileSystem) extends api.fs.
override def open(path: String, mode: Mode) = mode match {
case Mode.Read => fileSystem.open(path, mode)
case Mode.Write => throw new FileNotFoundException("Read-only filesystem; cannot open for writing: " + path)
case Mode.Append => throw new FileNotFoundException("Read-only filesystem; cannot open for appending: " + path)
case Mode.Write => throw new FileNotFoundException("read-only filesystem; cannot open for writing: " + path)
case Mode.Append => throw new FileNotFoundException("read-only filesystem; cannot open for appending: " + path)
}
override def getHandle(handle: Int) = fileSystem.getHandle(handle)