Cyberduck Mountain Duck CLI

#2559 closed enhancement (duplicate)

Empty Directory [Follow-on of ticket #2549]

Reported by: Owned by: dkocher
Priority: normal Milestone: 3.0.3
Component: ftp Version: 3.0.2
Severity: normal Keywords:
Cc: Architecture:

Description (last modified by dkocher)

Looking into the submitted tickets, I found a significant number describing the same problem as ticket #2549 (directory looking empty while it is not).
The problem does not come from CyberDuck but rather from some buggy FTP servers.
However, since this problem seems to be rather common, I would like to make the following suggestion :
After issuing a STAT command, if the directory appear to be empty, try to issue a LIST -a (and eventually a LIST) command in order to check if the server is faulty or not.
This extra check will no take time since it will occur only for empty directories (or looking so).
In case of faulty server, the send command can be temporary adjusted.
If the server is O.K., then the extra test can be discarded permanently (for this server).

Best regards

Change History (1)

comment:1 Changed on Sep 9, 2008 at 7:59:24 PM by dkocher

  • Component changed from core to ftp
  • Description modified (diff)
  • Milestone changed from 3.1 to 3.0.3
  • Resolution set to duplicate
  • Status changed from new to closed

A fallback mechnism is in place since 3.0.2 (see r4128). The issue with partial directory listings returned by some implementations is also covered in #2549 and fixed as of r4177.

Note: See TracTickets for help on using tickets.