You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stian Soiland-Reyes (JIRA)" <ji...@apache.org> on 2017/09/27 23:06:00 UTC
[jira] [Commented] (IO-506) Deprecate methods
FileSystemUtils.freeSpaceKb()
[ https://issues.apache.org/jira/browse/IO-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16183404#comment-16183404 ]
Stian Soiland-Reyes commented on IO-506:
----------------------------------------
Suggested javadoc:
{code}
* @deprecated As of 2.6 deprecated without replacement. Use equivalent
* methods in {@link java.nio.file.FileStore} instead, e.g.
* <code>Files.getFileStore(Paths.get("/home")).getUsableSpace()</code>
* or iterate over <code>FileSystems.getDefault().getFileStores()</code>
{code}
> Deprecate methods FileSystemUtils.freeSpaceKb()
> -----------------------------------------------
>
> Key: IO-506
> URL: https://issues.apache.org/jira/browse/IO-506
> Project: Commons IO
> Issue Type: Improvement
> Affects Versions: 2.5
> Reporter: Christian Schulte
> Assignee: Gary Gregory
> Priority: Trivial
> Fix For: 2.6
>
> Attachments: IO-506.patch
>
>
> Deprecated in favour of [java.nio.file.Filestore.getUsableSpace()|https://docs.oracle.com/javase/7/docs/api/java/nio/file/FileStore.html#getUsableSpace()] and [getUnallocatedSpace|https://docs.oracle.com/javase/7/docs/api/java/nio/file/FileStore.html#getUnallocatedSpace()] in Java 7 and later.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)