[jira] Created: (IO-234) Add Methods For Retrieving System Directories/Paths to FileUtils

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (IO-234) Add Methods For Retrieving System Directories/Paths to FileUtils

JIRA jira@apache.org
Add Methods For Retrieving System Directories/Paths to FileUtils
----------------------------------------------------------------

                 Key: IO-234
                 URL: https://issues.apache.org/jira/browse/IO-234
             Project: Commons IO
          Issue Type: Improvement
          Components: Utilities
    Affects Versions: 2.0
         Environment: Java 1.4+
            Reporter: Michael Wooten
            Priority: Minor
             Fix For: 2.0


I suggest adding methods to retrieve the temp directory and user directories as both File objects and String paths. The methods would have the following signatures:

String getTempDirectoryPath()
File getTempDirectory()
String getUserDirectoryPath()
File getUserDirectory()

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (IO-234) Add Methods For Retrieving System Directories/Paths to FileUtils

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/IO-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Wooten updated IO-234:
------------------------------

    Attachment: apache-commons-io-tmp-user-dirs.patch

The patch was created using Eclipse and contains the additional methods described in the description, as well as test cases for them.

> Add Methods For Retrieving System Directories/Paths to FileUtils
> ----------------------------------------------------------------
>
>                 Key: IO-234
>                 URL: https://issues.apache.org/jira/browse/IO-234
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 2.0
>         Environment: Java 1.4+
>            Reporter: Michael Wooten
>            Priority: Minor
>             Fix For: 2.0
>
>         Attachments: apache-commons-io-tmp-user-dirs.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> I suggest adding methods to retrieve the temp directory and user directories as both File objects and String paths. The methods would have the following signatures:
> String getTempDirectoryPath()
> File getTempDirectory()
> String getUserDirectoryPath()
> File getUserDirectory()

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (IO-234) Add Methods For Retrieving System Directories/Paths to FileUtils

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/IO-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton resolved IO-234.
--------------------------------

    Resolution: Fixed

Fixed, thanks for the patch

http://svn.apache.org/viewvc?view=revision&revision=982449

> Add Methods For Retrieving System Directories/Paths to FileUtils
> ----------------------------------------------------------------
>
>                 Key: IO-234
>                 URL: https://issues.apache.org/jira/browse/IO-234
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 2.0
>         Environment: Java 1.4+
>            Reporter: Michael Wooten
>            Priority: Minor
>             Fix For: 2.0
>
>         Attachments: apache-commons-io-tmp-user-dirs.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> I suggest adding methods to retrieve the temp directory and user directories as both File objects and String paths. The methods would have the following signatures:
> String getTempDirectoryPath()
> File getTempDirectory()
> String getUserDirectoryPath()
> File getUserDirectory()

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.