mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 18:55:03 -04:00
Fixed a stupid oversight
Creation of directories now checks filename validity again
This commit is contained in:
parent
e62895e901
commit
d544f9748d
@ -145,6 +145,8 @@ object FileSystem extends api.detail.FileSystemAPI {
|
|||||||
// accordingly before the path is passed to the file system.
|
// accordingly before the path is passed to the file system.
|
||||||
private val invalidChars = """\:*?"<>|""".toSet
|
private val invalidChars = """\:*?"<>|""".toSet
|
||||||
|
|
||||||
|
override def makeDirectory(path: String) = super.makeDirectory(validatePath(path))
|
||||||
|
|
||||||
override protected def openOutputHandle(id: Int, path: String, mode: Mode) = super.openOutputHandle(id, validatePath(path), mode)
|
override protected def openOutputHandle(id: Int, path: String, mode: Mode) = super.openOutputHandle(id, validatePath(path), mode)
|
||||||
|
|
||||||
protected override def segments(path: String) = {
|
protected override def segments(path: String) = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user