[
https://issues.apache.org/jira/browse/IO-707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17280919#comment-17280919
]
Boris Unckel commented on IO-707:
---------------------------------
[~beAshish] No, I don't have the necessary Jira access rights.
> Add optional early error detection as postcondition check
> ---------------------------------------------------------
>
> Key: IO-707
> URL: https://issues.apache.org/jira/browse/IO-707
> Project: Commons IO
> Issue Type: Improvement
> Components: Utilities
> Affects Versions: 2.8.0
> Reporter: Boris Unckel
> Priority: Major
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> The current version does not include an optional way to detect errors with
> the underlying filesystem and/or logic early.
> Due to performance reason and/or design decision, the result of delete or
> create directories/files does not include a check wheter the delete or create
> was successful. It "only" relies on trust to the underlying operations of the
> JDK and/or the completeness of own unit tests.
> To have the option to check things, without having additional commons-io
> proprietary options and without a performance impact for regular operations
> the Java 1.4 keyword "assert" should be used.
> Current project profits in case of detail analysis. Downstream projects
> having own unit tests for IO will profit.
> PR with proposal will follow.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)