On Thu, Oct 9, 2008 at 5:42 PM, Andrea Francia <[EMAIL PROTECTED]> wrote: > About FtpServer default implementation, yes, it should returns ordered list, > I agree.
Great. > About my embedded customized ftp server, I think that I should choose what > to do. You can always choose what you like to do, but you should be made aware that your break the contract. Again, this is perfectly okay but your on your own when it comes to the consequences. > The ordered list clause is contained in the Ftplet interface not in the > ftpserver default implementation. Yes... like many other things specified in the interfaces. Many of which that might not required under special circumstances, however, our interfaces are defined to be used in typical FTP server implementations, all of which should return an ordered list. I'm sorry, but mock implementations are not our target for our API (and I don't think any API should be designed primarily for mocking). > I agree with you with the fact that the ftplet implementation is the best > place where implement the ordering. > > But specific ftplet implementation should be free to choose to order the > files names or not. Again, it's not in the Ftplet implementation. The file system implementation is provided by the FTP server implementation to Ftplets (like most interfaces in ftplet-api). /niklas
