[
https://issues.apache.org/jira/browse/IO-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas updated IO-699:
----------------------
Description:
We run into a small issue with FileUtils.copyDirectory(File srcDir, File
destDir).
The javadoc is wrong, setting preserveFileDate=true will now result in an
IOException if the operation fails. Issue IO-695 already exists for that.
org.apache.commons.io.FileUtils.setLastModified(File, File) sets the
lastModified of the targetFile, but the IOException logs "failed
setLastModified on *sourceFile*".
The setter failed on targetFile - so it should log on *targetFile*?
was:
We run into a small issue with FileUtils.copyDirectory(File srcDir, File
destDir).
The javadoc is wrong, setting preserveFileDate=true will now result in an
IOException if the operation fails. Issue IO 695 already exists for that.
org.apache.commons.io.FileUtils.setLastModified(File, File) sets the
lastModified of the targetFile, but the IOException logs "failed
setLastModified on *sourceFile*".
The setter failed on targetFile - so it should log on *targetFile*?
> Wrong logging in FileUtils.setLastModified
> ------------------------------------------
>
> Key: IO-699
> URL: https://issues.apache.org/jira/browse/IO-699
> Project: Commons IO
> Issue Type: Bug
> Affects Versions: 2.8.0
> Reporter: Thomas
> Priority: Trivial
>
> We run into a small issue with FileUtils.copyDirectory(File srcDir, File
> destDir).
>
> The javadoc is wrong, setting preserveFileDate=true will now result in an
> IOException if the operation fails. Issue IO-695 already exists for that.
>
> org.apache.commons.io.FileUtils.setLastModified(File, File) sets the
> lastModified of the targetFile, but the IOException logs "failed
> setLastModified on *sourceFile*".
> The setter failed on targetFile - so it should log on *targetFile*?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)