From e4753338d60396c00f80b494366b2869f8541944 Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 13 Aug 2021 15:46:45 +0200 Subject: tests und shit --- src/jsMain/kotlin/WebOS.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/jsMain/kotlin/WebOS.kt') diff --git a/src/jsMain/kotlin/WebOS.kt b/src/jsMain/kotlin/WebOS.kt index b7c4cfb..f762d3a 100644 --- a/src/jsMain/kotlin/WebOS.kt +++ b/src/jsMain/kotlin/WebOS.kt @@ -1,5 +1,7 @@ -import io.IOHandler +import io.FileService import io.Path +import io.PrimitiveFileService +import io.PrimitiveINode import kotlinx.browser.document import kotlinx.browser.window import org.w3c.dom.Element @@ -69,7 +71,7 @@ class Console(val os: WebOS, val renderElement: Element?) { class WebOS { private val _consoles = mutableListOf() val consoles get() = _consoles.toList() - val files = IOHandler() + val files: FileService = PrimitiveFileService() fun registerConsole(element: Element) { _consoles.add(Console(this, element)) } @@ -77,6 +79,6 @@ class WebOS { data class User( val name: String, - val homeDirectory: Path.Absolute + val homeDirectory: Path.Absolute, + val isRoot: Boolean = false, ) - -- cgit