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

[REBOL] Re: Reading empty directories via FTP error

From: carl:cybercraft at: 24-Dec-2003 22:47

On 13-Nov-03, Brett Handley wrote:
>>> Does that work for you, Ashley? >> >> No, but see above. > Hmm.. > Thinking more on this, given the whole NLST handling (if empty? > file-list [....]) is a second bite of the cherry at getting a > directory list, and if you can assume that your FTP server will > always respond to the LIST command in a way that REBOL can parse, > you could probably cut the whole NLST handling from parse-dir-list > and happily ignore most of this thread. :-)
Quite possibly, since I've just tried it and it works for me. ;) Try that Ashley - cut the "if empty? file-list [....]" code right out of the original parse-dir-list and see what happens... Has anyone sent RT feedback about this? As it does seem as though parse-dir-list could attempt to close the same port twice, right? Which at least shouldn't happen, never mind the rest of the code, right? -- Carl Read