• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 7
Mac OS X VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Something about .... going for a swim. With this tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic