> I'd like to ensure that **all** content nodes are being stored in my
> derived-output dirstruc.
You can run this script to list all non-@<file> nodes in the log pane.
def report(p):
if not p.v.anyAtFileNodeName():
g.es(p.get_UNL(False))
for i in p.children():
report(i)
for i in c.rootPosition().self_and_siblings():
report(i)
Just paste it into a node and click run-script.
Reading over your importing projects ideas quickly they seem like they
could work. For recognized languages (Python, C, Javascript, rst) you
can use the @auto import to get the initial structure into nodes, and
switch to @shadow after that, if you want.
Cheers -Terry
You can run this script to list all non-@<file> nodes in the log pane.
Reading over your importing projects ideas quickly they seem like theycould work. For recognized languages (Python, C, Javascript, rst) you
can use the @auto import to get the initial structure into nodes, and
switch to @shadow after that, if you want.
> Could the criteria exclude nodes with no body content?
def report(p):
if p.b.strip() and not p.v.anyAtFileNodeName():
g.es(p.get_UNL(False))
for i in p.children():
report(i)
for i in c.rootPosition().self_and_siblings():
report(i)
would be nodes with body content only, I think.
Cheers -Terry
> If nodes-with-content-not-being-derived-into-files are present right up to
> the root, no problem. Any empty nodes in between "block", they don't get
> reported. Unfortunately everything in my data is organized with empty nodes
> above. . .
Didn't think of that, what about
def report(p):
if p.v.anyAtFileNodeName():
return
if p.b.strip():
g.es(p.get_UNL(False))
for i in p.children():
report(i)
for i in c.rootPosition().self_and_siblings():
report(i)
Cheers -Terry