diff --git a/src/lib/KVStore.hx b/src/lib/KVStore.hx index 2d59931..25b7f2f 100644 --- a/src/lib/KVStore.hx +++ b/src/lib/KVStore.hx @@ -17,12 +17,13 @@ class KVStore { } private static function getNamespaceFile(namespace: String): String { - return '/$namespace'; + return '/var/ns/$namespace'; } public function load() { - if (FS.exists(getNamespaceFile(namespace))){ - var handle = FS.openRead("/" + namespace); + var nsFile = getNamespaceFile(this.namespace); + if (FS.exists(nsFile)){ + var handle = FS.openRead(nsFile); parseFile(handle.readAll()); } }