What about nested includes?

If one has nested includes, is getFileIndex going to return all of them or just the top level? If all, is there any mechanism for getting the levels?

Or, is this another case of having to parse the LISTING?


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tamhas's picture

So, clearly it has the

So, clearly it has the nested includes, but no obvious indication in getFileIndex of the level.

Any idea why I get
C:\Apps\PSC\11.0\gui\\get
but
C:\work\Faster\FASTERV9\src\dttgroup-asset.w

I.e., the former has a \\ at the PROPATH break, but the later doesn't. And yes, they really do have a .w used as an include.


tamhas's picture

The other question is, is

The other question is, is getFileIndex ever going to return anything other than an include. I am finding things like $DLC\gui\get which are actually includes, but don't appear to be includes because they have no extension.

All the more amusing because of the old Varnet code where the .p didn't have an extension but the include did.