Behaviour change in FileUtils.copyDirectory() file last
modified date/times preservation
Match Javadoc to code.
MODIFY
src/changes/changes.xml
src/changes/changes.xml
@@ -78,6 +78,9 @@ The <action> type attribute can be add,update,fix,remove.
PathUtils.deleteFile() no longer throws a NoSuchFileException when applied on a symbolic link pointing
to a file that doesn't exist.
</action>
+ <action issue="IO-694" dev="ggregory" type="fix" due-to="Tan Yee Fan, Gary Gregory">
+ Behavior change in FileUtils.copyDirectory() file last modified timestamp preservation. Match Javadoc to code.
+ </action>
<!-- ADD -->
<action dev="ggregory" type="add" due-to="Gary Gregory">
Add FileSystemProviders class.

MODIFY
src/main/java/org/apache/commons/io/FileUtils.java
src/main/java/org/apache/commons/io/FileUtils.java
@@ -631,7 +631,7 @@ public static void copyDirectory(final File srcDir, final File destDir, final Fi
* {@code true} tries to preserve the files' last modified
* date/times using {@link File#setLastModified(long)}, however it is
* not guaranteed that those operations will succeed.
- * If the modification operation fails, no indication is provided.
+ * If the modification operation fails, the methods throws IOException.
* </p>
* <b>Example: Copy directories only</b>
* <pre>
@@ -806,7 +806,7 @@ public static void copyFile(final File srcFile, final File destFile, final boole
* {@code true} tries to preserve the file's last modified
* date/times using {@link File#setLastModified(long)}, however it is
* not guaranteed that the operation will succeed.
- * If the modification operation fails, no indication is provided.
+ * If the modification operation fails, the methods throws IOException.
* </p>
*
* @param srcFile an existing file to copy, must not be {@code null}

[IO-694] Behaviour change in FileUtils.copyDirectory() file last
modified date/times preservation

Match Javadoc to code.