Emmanuel Lecharny wrote:
Besides, it doesn't resolve Andreas problem
Sorry, but I don't explain my thoughs very well.
I don't have a problem implementing the ordering.

I only think that the choose of ordering should left to the ftp server integrator or the ftplet implementor.
Assuming he has any kind of real problem, so far ... We are still waiting for a use case where it's important to get an unordered list.
When you have a very looong list of unordered files names that doesn't come from a relational database and you don't want load all in memory and sort them.
Dave just summuraize pretty well how common sense it is to have this method returning an ordered list.
I see that is a common sense returns ordered list, but even if it is common sense should not be compulsory. Is common sense to greet friends when you met they but there is not a law saying that. Javadoc of the interface is a contract between the interface designer an the class implementor. The contract should require only what is compulsory, and may suggest what is optional but appreciated.

--
Andrea Francia
http://andreafrancia.blogspot.com/2008/07/colinux-linux-dentro-windows.html

Reply via email to