in reply to Using File::Find to build a Nested-Set Tree representation

Sorry. I cut and pasted a test case for the above code. I'm actually using File::Find::finddepth not File::Find::find to traverse. My bad.
  • Comment on Re: Using File::Find to build a Nested-Set Tree representation

Replies are listed 'Best First'.
Re: Re: Using File::Find to build a Nested-Set Tree representation
by braswell (Sexton) on Nov 10, 2003 at 21:12 UTC
    Long overdue update to my own question. The answer is: It doesn't matter whether you use find or finddepth to build the NSR in the way my script above is written. It still produces the correct NSR of the filesystem in the database. So if you want to prune trees AND use NSR as in my script, just use File::Find::find.