Thanks Konstantin,
I found a method in the LocalFileSystem that seems to do the trick.
However, there isn't any code at the moment to find user data
directories like "My Documents", "My Music", "My Videos" (Windows) and
"Documents", "Music","Movies"(Mac OS X). I've added it as an issue in
JIRA and written a workaround for my own application.
Thanks again,
Mark
On Wednesday, December 20, 2006, at 01:45 AM, Konstantin Breu wrote:
Maybe javax.swing.filechooser.FileSystemView could help here, too.
Or have you already tried using that?
Cheers,
Konstantin
-----Ursprüngliche Nachricht-----
Von: Mark Fortner [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 19. Dezember 2006 21:30
An: Jakarta Commons Users List
Betreff: Re: [VFS] File System Roots
Mario,
I've created an issue for this and added a sample implementation.
http://issues.apache.org/jira/browse/VFS-103
Let me know if you need anything else.
Regards,
Mark
On Tuesday, December 19, 2006, at 12:07 PM, Mark A Fortner wrote:
Hi Mario,
Is your idea about implementing this to modify the FileSystem
interface so that each file system can return it's own roots? I
noticed that it currently returns a single root as most Unix file
systems do.
As far as the second part of the question is concerned, I implemented
something simple that checks to see what OS is being used, and then
creates the appropriate FileObjects. If you want I can post the code
to the list. It might be useful as part of the LocalFileSystem. It
doesn't require any native code.
I'll enter a JIRA issue outlining the basic requirements, and leave
the details up to the implementer's discretion.
Regards,
Mark
----- Original Message ----
From: Mario Ivankovits <[EMAIL PROTECTED]>
To: Jakarta Commons Users List <[email protected]>
Sent: Tuesday, December 19, 2006 11:51:35 AM
Subject: Re: [VFS] File System Roots
Hi Mark!
Is there any easy way to get file system roots?
Not yet, but this is planned to implement somehow, it would be great
if
you could open a JIRA ticket with it to not forget it.
The same API could/should be used to browse the network with
SMB/JCIFS.
Also, is there a way to get the equivalents of the Application,
Documents, Music, Movies, and Pictures directories on other operating
systems?
No, and I don't know how to do it without native code.
I (personally) would not start developing native code stuff for VFS,
though, a rough idea could be to try to find a student for the next
Google SoC - if there is one and if no one else would start
implementing
such stuff.
Ciao,
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]