Skip to content

Commit a0dc657

Browse files
committed
[IO-694] Behaviour change in FileUtils.copyDirectory() file last
modified date/times preservation. Javadoc.
1 parent 6ad5a5e commit a0dc657

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ public static File[] convertFileCollectionToFileArray(final Collection<File> fil
462462
* <strong>Note:</strong> This method tries to preserve the files' last
463463
* modified date/times using {@link File#setLastModified(long)}, however
464464
* it is not guaranteed that those operations will succeed.
465-
* If the modification operation fails, no indication is provided.
465+
* If the modification operation fails, the methods throws IOException.
466466
* </p>
467467
*
468468
* @param srcDir an existing directory to copy, must not be {@code null}
@@ -493,7 +493,7 @@ public static void copyDirectory(final File srcDir, final File destDir) throws I
493493
* {@code true} tries to preserve the files' last modified
494494
* date/times using {@link File#setLastModified(long)}, however it is
495495
* not guaranteed that those operations will succeed.
496-
* If the modification operation fails, no indication is provided.
496+
* If the modification operation fails, the methods throws IOException.
497497
* </p>
498498
*
499499
* @param srcDir an existing directory to copy, must not be {@code null}
@@ -526,7 +526,7 @@ public static void copyDirectory(final File srcDir, final File destDir,
526526
* <strong>Note:</strong> This method tries to preserve the files' last
527527
* modified date/times using {@link File#setLastModified(long)}, however
528528
* it is not guaranteed that those operations will succeed.
529-
* If the modification operation fails, no indication is provided.
529+
* If the modification operation fails, the methods throws IOException.
530530
* </p>
531531
* <b>Example: Copy directories only</b>
532532
* <pre>
@@ -578,7 +578,7 @@ public static void copyDirectory(final File srcDir, final File destDir,
578578
* {@code true} tries to preserve the files' last modified
579579
* date/times using {@link File#setLastModified(long)}, however it is
580580
* not guaranteed that those operations will succeed.
581-
* If the modification operation fails, no indication is provided.
581+
* If the modification operation fails, the methods throws IOException.
582582
* </p>
583583
* <b>Example: Copy directories only</b>
584584
* <pre>
@@ -706,7 +706,7 @@ public static void copyDirectory(final File srcDir, final File destDir, final Fi
706706
* <strong>Note:</strong> This method tries to preserve the files' last
707707
* modified date/times using {@link File#setLastModified(long)}, however
708708
* it is not guaranteed that those operations will succeed.
709-
* If the modification operation fails, no indication is provided.
709+
* If the modification operation fails, the methods throws IOException.
710710
* </p>
711711
*
712712
* @param sourceDir an existing directory to copy, must not be {@code null}
@@ -742,7 +742,7 @@ public static void copyDirectoryToDirectory(final File sourceDir, final File des
742742
* <strong>Note:</strong> This method tries to preserve the file's last
743743
* modified date/times using {@link File#setLastModified(long)}, however
744744
* it is not guaranteed that the operation will succeed.
745-
* If the modification operation fails, no indication is provided.
745+
* If the modification operation fails, the methods throws IOException.
746746
* </p>
747747
*
748748
* @param srcFile an existing file to copy, must not be {@code null}
@@ -773,7 +773,7 @@ public static void copyFile(final File srcFile, final File destFile) throws IOEx
773773
* {@code true} tries to preserve the file's last modified
774774
* date/times using {@link File#setLastModified(long)}, however it is
775775
* not guaranteed that the operation will succeed.
776-
* If the modification operation fails, no indication is provided.
776+
* If the modification operation fails, the methods throws IOException.
777777
* </p>
778778
*
779779
* @param srcFile an existing file to copy, must not be {@code null}
@@ -874,7 +874,7 @@ public static long copyFile(final File input, final OutputStream output) throws
874874
* <strong>Note:</strong> This method tries to preserve the file's last
875875
* modified date/times using {@link File#setLastModified(long)}, however
876876
* it is not guaranteed that the operation will succeed.
877-
* If the modification operation fails, no indication is provided.
877+
* If the modification operation fails, the methods throws IOException.
878878
* </p>
879879
*
880880
* @param srcFile an existing file to copy, must not be {@code null}
@@ -902,7 +902,7 @@ public static void copyFileToDirectory(final File srcFile, final File destDir) t
902902
* {@code true} tries to preserve the file's last modified
903903
* date/times using {@link File#setLastModified(long)}, however it is
904904
* not guaranteed that the operation will succeed.
905-
* If the modification operation fails, no indication is provided.
905+
* If the modification operation fails, the methods throws IOException.
906906
* </p>
907907
*
908908
* @param sourceFile an existing file to copy, must not be {@code null}
@@ -966,7 +966,7 @@ public static void copyInputStreamToFile(final InputStream source, final File de
966966
* <strong>Note:</strong> This method tries to preserve the files' last
967967
* modified date/times using {@link File#setLastModified(long)}, however
968968
* it is not guaranteed that those operations will succeed.
969-
* If the modification operation fails, no indication is provided.
969+
* If the modification operation fails, the methods throws IOException.
970970
* </p>
971971
*
972972
* @param sourceFile an existing file or directory to copy, must not be {@code null}
@@ -1002,7 +1002,7 @@ public static void copyToDirectory(final File sourceFile, final File destination
10021002
* <strong>Note:</strong> This method tries to preserve the file's last
10031003
* modified date/times using {@link File#setLastModified(long)}, however
10041004
* it is not guaranteed that the operation will succeed.
1005-
* If the modification operation fails, no indication is provided.
1005+
* If the modification operation fails, the methods throws IOException.
10061006
* </p>
10071007
*
10081008
* @param sourceIterable a existing files to copy, must not be {@code null}

0 commit comments

Comments
 (0)