[Yanel-dev] [Yarep] Implementing "mkdirs"

Michael Wechner michael.wechner at wyona.com
Wed Jun 13 15:31:02 CEST 2007


Hi

In many situations one would like to create a node as follows:

repo.getRootNode().addNode("/foo/bar/node.txt");

whereas /foo/bar might not exist and hence should be created recursively.

Yarep doesn't provide such an interface and IIUC the reason is that a 
node needs to be created with a node type,

node.addNode(name, type)

Hence I wanted to suggest a utility enhancement as follows:

addNode("/foo/bar/hugo.txt", type1:type2:type3)

WDYT?

Cheers

Michi

-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61




More information about the Yanel-development mailing list