You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Mario Ivankovits (JIRA)" <ji...@apache.org> on 2006/12/19 22:00:22 UTC

[jira] Commented: (VFS-103) Add support for Local File System reserved directories

    [ http://issues.apache.org/jira/browse/VFS-103?page=comments#action_12459758 ] 
            
Mario Ivankovits commented on VFS-103:
--------------------------------------

I see what you have done and I am pretty sure it works for you.

But (IMHO) for a library this approach is not sufficient. You can move these folders to virtually any place AND, as far as I know, they differ from system to system in name depending on the OS language.

At least you have to lookup those paths through the registry (on windows).
I think there is no way around in using a native library.

> Add support for Local File System reserved directories
> ------------------------------------------------------
>
>                 Key: VFS-103
>                 URL: http://issues.apache.org/jira/browse/VFS-103
>             Project: Commons VFS
>          Issue Type: New Feature
>            Reporter: Mark Fortner
>            Priority: Minor
>         Attachments: RootFileFactory.java
>
>
> Mac OS X, and Windows has special purpose directories used to organizes specific types of files.  In Mac OS X, these directories include "Documents", "Movies", "Pictures", "Music"; Windows uses "My Documents", "My Pictures", "My Videos" and "My Music".
> Provide a consistent approach for getting these directories either as a static factory method, or as individual methods. i.e. something along the lines of  "public static FileObject getRoot(int rootType)" where rootType is a constant that defines which one of the directorires (specified above) that you want.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org