Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there a FileSystemView wrapper for an FTPClient that I can use

 
Pat O'Hara
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
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?

Pat O
 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic