added removeNamespace to KVStore
This commit is contained in:
parent
c4260aa719
commit
eb39131056
@ -16,6 +16,11 @@ class KVStore {
|
|||||||
this.namespace = namespace;
|
this.namespace = namespace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function removeNamespace(namespace: String): Void {
|
||||||
|
var nsFile = getNamespaceFile(namespace);
|
||||||
|
FS.delete(nsFile);
|
||||||
|
}
|
||||||
|
|
||||||
private static function getNamespaceFile(namespace: String): String {
|
private static function getNamespaceFile(namespace: String): String {
|
||||||
return '/var/ns/$namespace';
|
return '/var/ns/$namespace';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user