Is there a FileSystemView wrapper for an FTPClient that I can use
posted 4 years ago
I am in the process of writing a FileSystemView wrapper for the Apache FTPClient in commons.net. It is surprising to me that there is not already such a class. My goal is to add the file system for a hardware device to the JFileChooser dialog. The device in question allows access via FTP. It has a single virtual folder (Cannot create sub folders). I will continue to write the wrapper, but thought I would through the question out here, has this already been done?
I think the number one reason there is no such FileSystemView implementation yet is the poor design of FileSystemView. It's built around java.io.File, which can only handle files on the local system and on Windows / NFS shares. If you write a FileSystemView around FTPClient, you would have to make sure that you don't use the File objects directly, because that will fail.