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

[REBOL] Re: Rebol and FTP (recursive stuff in particular)

From: holger:rebol at: 14-Dec-2000 9:48

On Thu, Dec 14, 2000 at 04:40:21PM +0000, Mat Bettinson wrote:
> Heya Holger, > > HK> No, REBOL caches and reuses the FTP control connection across > HK> subsequent accesses to the same host and directory. > > But doesn't actually close any. Is there a way of forcing them closed?
I'll double-check with Sterling, but AFAIK current experimental versions do close the control connection first if another connection to the same host has to be opened. At least that is the behavior I get here. Which version are you using ?
> HK> The only situation when REBOL creates a new control > HK> connection is when you change directories. That is necessary because > HK> FTP provides no standard way to remotely navigate through the > HK> directory tree (in particular up the tree) without side effects. > > What, other than cd .. ? I don't get it.
cd .. does not work if a component in the path is a softlink. E.g. if you have just read "/foo/" and next want to read "/bar/" then "cd .." does not always get you back to "/", because "/foo" might actually point to "/a/b/c/d/", and then "cd .." would only get you to "/a/b/c/". cd ~ works on some servers, but not all, "cd /" works on some servers, but not all :-). There seems to be no way to get back to the initial login directory (or to specify absolute path names relative to the login directory) that works on all FTP servers.
> Assuming for a second that I buy this argument, and I'm really not > sure I do,
Your choice :).
> then how would you recommend a recursive directory scan be > implemented in Rebol?
Just do a sequence of reads. -- Holger Kruse [holger--rebol--com]