Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Recursive-Read question

From: bry:itnisk at: 6-Nov-2002 12:51

Andrew Martin Wrote:
>Perhaps you could describe a desired end point given a starting point?
Sorry I've been sort of sick the last two days, so my posts are not the most clear headed(more congested actually) We have a minimal xml format for describing directory structures, I was trying to see if I could build up this format via Rebol. The format would be <folder> <file/> <file/> <folder> <file/> <file/> </folder> </folder> given a directory structure of Folder File File Folder File File however trying to work with Recursive-Read(haven't tried that new version yet) I get <folder> <file/> <file/> </folder> <folder> <file/> <file/> </folder> now it's not too important of a thing because I can get the path of directory I'm in so I end up with <folder path=ftp://some.site.com/T1/> <file path="ftp://some.site.com/T1/enIdea.xml"/> .... and so forth which means I can easily post-process with xslt and put subfolders underneath proper parent folders, but this would be in the class of an ugly hack, an admission of not knowing Rebol well enough yet. Of course I don't know Rebol well enough yet, and I am not averse to making ugly hacks to get something done, but as this is just my own testing the language I figure it would be better to find the solution rather than ugly-hack it. :) But anyway I'm gonna go look through some of the other Recursive functions for directories, like your new version and the stuff from Christopher Ross-Gill and see if I can come to some understanding of how I should do it. Thanks.