Parenthood [directories structure]

Hallo
there is a way to track files parenthood in rtf or another format?
ie.
Chapter Title
—SubChapter
------Child File

Can I track somewhere in the file code that Child File is nested into SubChapter and Chapter Title (child and grandchild)?

I would like to automatically import files into another program, keeping proper parenthood (or directories structure if you prefer)

Thanks

Do you mean something like a printable outline, although with the text included? You could try taking a look at the “Enumerated Outline” compile preset, and then visiting the Formatting pane and turning on all of the “Text” checkboxes (you can just Option-click on any one of them to toggle them all).