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

[REBOL] Re: ftp reading an empty folder

From: arolls:idatam:au at: 20-Nov-2001 19:53

> How can I handle this error. I think in this case read > should return an empty list, not throw an error. > > Daniel
To handle the error, surround your reading code like this: if error? set/any 'err try [ list: read ftp-dir ][ ; an error occurred ; set list to empty list: copy [] ] Anton.