On Tue, Dec 11, 2001 at 02:01:35PM -0500, Glenn Maynard wrote: > depth_first: I changed this because it's confusing; it seems that if > this is false, it'll be a breadth-first traversal (which it's not, of > course.)
This is the term find(1) uses - -depth option. > GetFileInfo should probably fail here: > > lftp :~> cls -ld ~ > ~/ > lftp :~> cls -ld / > // I don't think so. GetFileInfo should not fail if the file exists, even if no info can be retrieved. > ---> PASS XXXX > <--- 530 Login incorrect. > (^Z) > [0] find & > .: Delaying before reconnect: 55 [Delaying before reconnect: 55] I have fixed that by checking error code. > Last: Spurious "%2F/": > 01:24pm [EMAIL PROTECTED]/2 [~/lftp/src] ./lftp > lftp :~> find ftp://localhost > ftp://localhost/%2F/ > ---- Connecting to localhost (127.0.0.1) port 21 > ftp://localhost/3x3.avi > > Second time (same session), spurious slash is still there but %2F is > gone: > > lftp :~> find ftp://localhost > ftp://localhost// > ftp://localhost/3x3.avi > > We probably shouldn't have an extra slash or %2F in either of these > cases, since it wasn't there in the argument. (Just one slash, because > it's a directory.) The first time the home dir is not known. So lftp adds %2F to specify root directory in ftp url. The second slash is added for root directory. -- Alexander.
