You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/12/11 05:00:43 UTC

[commons-io] branch master updated: [IO-694] Behaviour change in FileUtils.copyDirectory() file last modified date/times preservation.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new a0dc657  [IO-694] Behaviour change in FileUtils.copyDirectory() file last modified date/times preservation.
a0dc657 is described below

commit a0dc657e9a068650a675c1b894a84022dbb8ca06
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Dec 11 00:00:38 2020 -0500

    [IO-694] Behaviour change in FileUtils.copyDirectory() file last
    modified date/times preservation.
    
    Javadoc.
---
 src/main/java/org/apache/commons/io/FileUtils.java | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/FileUtils.java b/src/main/java/org/apache/commons/io/FileUtils.java
index 00a02cb..3c8fccb 100644
--- a/src/main/java/org/apache/commons/io/FileUtils.java
+++ b/src/main/java/org/apache/commons/io/FileUtils.java
@@ -462,7 +462,7 @@ public class FileUtils {
      * <strong>Note:</strong> This method 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>
      *
      * @param srcDir  an existing directory to copy, must not be {@code null}
@@ -493,7 +493,7 @@ public class FileUtils {
      * {@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>
      *
      * @param srcDir           an existing directory to copy, must not be {@code null}
@@ -526,7 +526,7 @@ public class FileUtils {
      * <strong>Note:</strong> This method 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>
@@ -578,7 +578,7 @@ public class FileUtils {
      * {@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>
@@ -706,7 +706,7 @@ public class FileUtils {
      * <strong>Note:</strong> This method 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>
      *
      * @param sourceDir  an existing directory to copy, must not be {@code null}
@@ -742,7 +742,7 @@ public class FileUtils {
      * <strong>Note:</strong> This method 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}
@@ -773,7 +773,7 @@ public class FileUtils {
      * {@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}
@@ -874,7 +874,7 @@ public class FileUtils {
      * <strong>Note:</strong> This method 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}
@@ -902,7 +902,7 @@ public class FileUtils {
      * {@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 sourceFile          an existing file to copy, must not be {@code null}
@@ -966,7 +966,7 @@ public class FileUtils {
      * <strong>Note:</strong> This method 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>
      *
      * @param sourceFile      an existing file or directory to copy, must not be {@code null}
@@ -1002,7 +1002,7 @@ public class FileUtils {
      * <strong>Note:</strong> This method 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 sourceIterable     a existing files to copy, must not be {@code null}