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:45

On 09-Nov-03, Brett Handley wrote:
> That's odd. I get an empty block returned when I create an empty > directory on my website and then read it. > Maybe you should trace the connection and see what conversation the > server is having with REBOL.
Except I don't know how to do that. :) I get the error using different OSs, different versions of REBOL and from two different ftp servers. If it's a bug, I'm sure someone must have hit it before me. Anyway, I've found I get an empty block returned if I use a port instead of an URL, so that provides a way around it. Would've been easier using an URL though... Carl.
>> When I attempt to get a directory listing via FTP and the >> directory is >> empty I get this error... >>>> read dir >> ** Access Error: Port none not open >> ** Where: parse-dir-list >> ** Near: read dir >> I would've expected it to return an empty block, or perhaps none. >> No >> problems when there's files in the directory. Any way round this, >> other than by examining the error returned?
-- Carl Read