Skip to content

SimpleWrite

James Carnley edited this page Dec 29, 2023 · 4 revisions

SimpleWrite

Write lastName property on /james/

Call EFS.resolve(efsId = 0 //rootDir, "/james/") and get efsId
{
	edition = EfsEdition
	propEfsId = edition.resolve(efsId, "/james/")
	return efsId
}

Call EFS.write(efsId, "props", "set", [lastName = "Carnley"])
{
	edition = EfsEdition
	propEfsId = edition.resolve(efsId, "lastName")
	NodeStruct newData = {
		data = "Carnley"
		updated = now()
	}
	edition.set(propEfsId, newData)
}

Clone this wiki locally