Tcl Library Source Code

View Ticket
Login
Ticket UUID: 898067
Title: ftp::NList error when directory empty
Type: Bug Version: None
Submitter: cdclercq Created on: 2004-02-16 15:08:08
Subsystem: ftp Assigned To: gwlester
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2026-11-21 11:06:48
Resolution: By Design Closed By: serhiy.storchaka
    Closed on: 2026-11-21 11:06:48
Description:
When executing ftp::NList on an empty directory
follwing error message appears
"error     error | E: Error getting directory listing!"

The manual says:
This command has the same behavior as the ::ftp::List 
command, ...

Ths ftp::List command does not show an error on emty
dirs ...

This a non-blocking message ...

Regards,

Christophe De Clercq
User Comments: serhiy.storchaka added on 2026-11-21 11:06:48:

Some servers answer NLST on an empty directory with a 450/550 error, and ftp::NList logs that error. It still returns an empty list, as for an empty listing.


cdclercq added on 2004-02-26 13:44:41:
Logged In: YES 
user_id=617750

I tested this with tcllib 1.6

andreas_kupries added on 2004-02-26 08:14:46:
Logged In: YES 
user_id=75003

I retract this. I confused the ftp with the ftpd package.

andreas_kupries added on 2004-02-26 08:13:43:
Logged In: YES 
user_id=75003

I believe that this bug is fixed in CVS Head and the released 
Tcllib 1.6. I applied a patch by Gerald Lester and in the q&a 
about the various part there was one chunk to fix such an 
error. Please try tcllib 1.6.