mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Francia <and...@andreafrancia.it>
Subject Re: Why FtpFile#listFiles() require that the file list is ordered?
Date Fri, 10 Oct 2008 09:30:36 GMT
Niklas Gustavsson wrote:
> On Thu, Oct 9, 2008 at 9:05 PM, Andrea Francia <andrea@andreafrancia.it> wrote:
>> I don't yet understand why there is such requirement and why not let choose
>> to ftp server integrator.
>> In my mind the ftp server integrator should left to choose if he requires a
>> component that implements this extra functionality or not.
> Let me turn the question around. I don't see why it's such a big an
> issue for the implementation to provide an ordered list? You gave an
> example where you have a long list and the file system could not sort
> it. To me, this is not a valid argument as Ftplets should be portable
> between container implementations, some which might require an ordered
> list (like all known FTP servers). If the file system implementation
> can not order the list, the server would not have much more luck.
> Therefore, the ordering should be mandatory to indicate to the file
> system implementor that returning an un-ordered list is a very bad
> idea as it would break the expectations of most FTP users.

Ok now I understand.

Andrea Francia

View raw message