directory tree -> array

Richard Gaskin ambassador at fourthworld.com
Wed Jan 22 13:26:36 EST 2020


We have many handlers that deliver directory trees as lists, but arrays 
are a different beast.  Because the depth is both unknowable and varied, 
I can't think of a way to do this without resorting to "do".
-- 
  Richard Gaskin


Bob Sneidar wrote:

 > I thought someone created a handler for this? It requires iteration.
 >
 > On Jan 22, 2020, at 10:17 , Richard Gaskin wrote:
 >
 > I stumbled across a code challenge for y'all, one that seems
 > seductively simple but I don't think it is:
 >
 > What is the simplest way to build an array that reflects the files
 > and folders within a given folder?
 >
 > There's a discussion about this here:
 >
 > https://forums.livecode.com/viewtopic.php?f=7&t=33565





More information about the use-livecode mailing list