commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerome Hollon (Jira)" <j...@apache.org>
Subject [jira] [Commented] (IO-629) FileUtils#forceDelete should use Files#delete rather than File#delete so exception messages includes reason for failure
Date Thu, 10 Oct 2019 19:51:00 GMT

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

Jerome Hollon commented on IO-629:
----------------------------------

I created pull request using supplied patch: https://github.com/apache/commons-io/pull/98

> FileUtils#forceDelete should use Files#delete rather than File#delete so exception messages
includes reason for failure
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: IO-629
>                 URL: https://issues.apache.org/jira/browse/IO-629
>             Project: Commons IO
>          Issue Type: Improvement
>            Reporter: Ian Springer
>            Priority: Major
>         Attachments: IO-629.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> From File#delete Javadoc:
> {noformat}
> <p> Note that the {@link java.nio.file.Files} class defines the 
> {@link java.nio.file.Files#delete(Path) delete} method to throw
> an {@link IOException} when a file cannot be deleted. This is 
> useful for error reporting and to diagnose why a file cannot be
>  deleted.
> {noformat}
>  
>  This change is possible now that 2.6 requires Java 7.
>  



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

Mime
View raw message