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

[REBOL] Re: Reading directories faster.

From: atruter:hih:au at: 9-Oct-2002 9:32

> I am using the code below to read and sort the current directory
contents. If you only need files or dirs the following may help: read-dir: func [path /files /dirs] [ either dirs [ sort remove-each dir read path [#"/" <> last dir] ][ sort remove-each dir read path [#"/" = last dir] ] ] Regards, Ashley