[
https://issues.apache.org/jira/browse/IO-707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Boris Unckel closed IO-707.
---------------------------
Resolution: Won't Fix
PR https://github.com/apache/commons-io/pull/192 was not successful. Bugs of
commons-io are only accepted for Linux if they occur on CI which is Ubuntu.
> 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: 2h 20m
> 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.20.7#820007)