mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 09:46:53 -04:00
Lowercase errors masterrace.
This commit is contained in:
parent
7c2a0541e4
commit
326bafca1d
@ -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)
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user