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

[REBOL] Re: Recursive directory read/delete

From: brett:codeconscious at: 26-Apr-2001 11:25

Hi Andrew, Looks good. One point. My experience has been that when using the dir? function on an FTP target it will access the target causing a network read each time you use it - which is entirely reasonable because it represents the question "is this a directory?". In my code I posted earlier, I use something like this test instead: dirized?: func [f][equal? f dirize f] The reason I do so, is that having got the results of READ on a directory - rebol has told me which are directories - they are the ones with the / at the end. Well, it seems to work... :) Thus saving heaps of network activity. Brett Handley.