Help for this page

Select Code to Download


  1. or download this
    # Traverse the filesystem
    push to stack /
    ...
               if it's also a directory, push it (full path) 
                  on the stack
         close the current directory
    
  2. or download this
    call traverse(/)
    function traverse (currentdirectory)
    ...
         foreach pathname in this directory
               if it's also a directory, traverse(pathname)
         close currentdirectory