You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2021/01/21 16:03:00 UTC

[jira] [Comment Edited] (IO-595) Add similar util class as FileUtils for java.nio.file.Path

    [ https://issues.apache.org/jira/browse/IO-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17269402#comment-17269402 ] 

Gary D. Gregory edited comment on IO-595 at 1/21/21, 4:02 PM:
--------------------------------------------------------------

We now have such a class, for which we could have separate tickets to fill in the blanks, while turning this ticket into an epic.

 

 


was (Author: garydgregory):
We now have such a class, for which we could have separate tickets to fill in the blanks.

 

> Add similar util class as FileUtils for java.nio.file.Path
> ----------------------------------------------------------
>
>                 Key: IO-595
>                 URL: https://issues.apache.org/jira/browse/IO-595
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Utilities
>            Reporter: Matt Sicker
>            Priority: Major
>
> There are several utility methods in FileUtils that are not present in the Java 7 Files API for Path. These would make up a useful basis for a PathUtils class to complement Java's java.nio.file package. Below is a listing of method ideas adapted from FileUtils for Path that are not already covered by java.nio.file.Files or trivially adapted to something there.
>  * touch(Path)
>  * contentEquals(Path, Path)
>  * copyDirectoryToDirectory(Path, Path, CopyOption...)
>  * copyDirectory(Path, Path, CopyOption...)
>  * copyDirectory(Path, Path, PathMatcher, CopyOption...)
>  * deleteDirectory(Path)
>  * deleteQuietly(Path)
>  * directoryContains(Path, Path)
>  * cleanDirectory(Path)
>  * waitFor(Path, long, TimeUnit)
>  * forceDelete(Path)
>  * forceDeleteOnExit(Path)
>  * forceMkdir(Path)
>  * forceMkdirParent(Path)
>  * sizeOfDirectory(Path) - probably just return BigInteger only



--
This message was sent by Atlassian Jira
(v8.3.4#803005)