mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Roberts <dave.robe...@saaconsultants.com>
Subject Re: Why FtpFile#listFiles() require that the file list is ordered?
Date Thu, 09 Oct 2008 09:42:42 GMT
Andrea Francia wrote:
> Niklas Gustavsson wrote:
>> On Wed, Oct 8, 2008 at 11:44 PM, Andrea Francia <andrea@andreafrancia.it> wrote:
>>   
>>> Why should I do this?
>>>     
>> Because it's the order that will be returned to the client, and if
>> it's a long listing it's better to let the implementation do the
>> ordering than do it afterwards. 
> I think that sorting should be a client issue and a client decision.
> The client choose to sort by name, modification time, user, group or 
> whatever he wants.

That very much depends on the client, which may not have the 
capability of performing ordering at all.

What order do you think the server should return the list?  Or are 
you suggesting that it should be unordered/random according to the 
backend storage?

Mime
View raw message