@@ -603,6 +603,10 @@ public static URL[] toURLs(File[] files) throws IOException {
603603 * to a file of the same name in the specified destination directory.
604604 * The destination directory is created if it does not exist.
605605 * If the destination file exists, then this method will overwrite it.
606+ * <p>
607+ * <strong>Note:</strong> This method tries to preserve the file's last
608+ * modified date/times using {@link File#setLastModified(long)}, however
609+ * it is not guaranteed that the operation will succeed.
606610 *
607611 * @param srcFile an existing file to copy, must not be <code>null</code>
608612 * @param destDir the directory to place the copy in, must not be <code>null</code>
@@ -623,6 +627,11 @@ public static void copyFileToDirectory(File srcFile, File destDir) throws IOExce
623627 * to a file of the same name in the specified destination directory.
624628 * The destination directory is created if it does not exist.
625629 * If the destination file exists, then this method will overwrite it.
630+ * <p>
631+ * <strong>Note:</strong> Setting <code>preserveFileDate</code> to
632+ * <code>true</code> tries to preserve the file's last modified
633+ * date/times using {@link File#setLastModified(long)}, however it is
634+ * not guaranteed that the operation will succeed.
626635 *
627636 * @param srcFile an existing file to copy, must not be <code>null</code>
628637 * @param destDir the directory to place the copy in, must not be <code>null</code>
@@ -653,6 +662,10 @@ public static void copyFileToDirectory(File srcFile, File destDir, boolean prese
653662 * specified destination file. The directory holding the destination file is
654663 * created if it does not exist. If the destination file exists, then this
655664 * method will overwrite it.
665+ * <p>
666+ * <strong>Note:</strong> This method tries to preserve the file's last
667+ * modified date/times using {@link File#setLastModified(long)}, however
668+ * it is not guaranteed that the operation will succeed.
656669 *
657670 * @param srcFile an existing file to copy, must not be <code>null</code>
658671 * @param destFile the new file, must not be <code>null</code>
@@ -673,6 +686,11 @@ public static void copyFile(File srcFile, File destFile) throws IOException {
673686 * to the specified destination file.
674687 * The directory holding the destination file is created if it does not exist.
675688 * If the destination file exists, then this method will overwrite it.
689+ * <p>
690+ * <strong>Note:</strong> Setting <code>preserveFileDate</code> to
691+ * <code>true</code> tries to preserve the file's last modified
692+ * date/times using {@link File#setLastModified(long)}, however it is
693+ * not guaranteed that the operation will succeed.
676694 *
677695 * @param srcFile an existing file to copy, must not be <code>null</code>
678696 * @param destFile the new file, must not be <code>null</code>
@@ -767,6 +785,10 @@ private static void doCopyFile(File srcFile, File destFile, boolean preserveFile
767785 * The destination directory is created if it does not exist.
768786 * If the destination directory did exist, then this method merges
769787 * the source with the destination, with the source taking precedence.
788+ * <p>
789+ * <strong>Note:</strong> This method tries to preserve the files' last
790+ * modified date/times using {@link File#setLastModified(long)}, however
791+ * it is not guaranteed that those operations will succeed.
770792 *
771793 * @param srcDir an existing directory to copy, must not be <code>null</code>
772794 * @param destDir the directory to place the copy in, must not be <code>null</code>
@@ -802,6 +824,10 @@ public static void copyDirectoryToDirectory(File srcDir, File destDir) throws IO
802824 * The destination directory is created if it does not exist.
803825 * If the destination directory did exist, then this method merges
804826 * the source with the destination, with the source taking precedence.
827+ * <p>
828+ * <strong>Note:</strong> This method tries to preserve the files' last
829+ * modified date/times using {@link File#setLastModified(long)}, however
830+ * it is not guaranteed that those operations will succeed.
805831 *
806832 * @param srcDir an existing directory to copy, must not be <code>null</code>
807833 * @param destDir the new directory, must not be <code>null</code>
@@ -824,6 +850,11 @@ public static void copyDirectory(File srcDir, File destDir) throws IOException {
824850 * The destination directory is created if it does not exist.
825851 * If the destination directory did exist, then this method merges
826852 * the source with the destination, with the source taking precedence.
853+ * <p>
854+ * <strong>Note:</strong> Setting <code>preserveFileDate</code> to
855+ * <code>true</code> tries to preserve the files' last modified
856+ * date/times using {@link File#setLastModified(long)}, however it is
857+ * not guaranteed that those operations will succeed.
827858 *
828859 * @param srcDir an existing directory to copy, must not be <code>null</code>
829860 * @param destDir the new directory, must not be <code>null</code>
@@ -849,6 +880,10 @@ public static void copyDirectory(File srcDir, File destDir,
849880 * The destination directory is created if it does not exist.
850881 * If the destination directory did exist, then this method merges
851882 * the source with the destination, with the source taking precedence.
883+ * <p>
884+ * <strong>Note:</strong> This method tries to preserve the files' last
885+ * modified date/times using {@link File#setLastModified(long)}, however
886+ * it is not guaranteed that those operations will succeed.
852887 *
853888 * <h4>Example: Copy directories only</h4>
854889 * <pre>
@@ -893,6 +928,11 @@ public static void copyDirectory(File srcDir, File destDir,
893928 * The destination directory is created if it does not exist.
894929 * If the destination directory did exist, then this method merges
895930 * the source with the destination, with the source taking precedence.
931+ * <p>
932+ * <strong>Note:</strong> Setting <code>preserveFileDate</code> to
933+ * <code>true</code> tries to preserve the files' last modified
934+ * date/times using {@link File#setLastModified(long)}, however it is
935+ * not guaranteed that those operations will succeed.
896936 *
897937 * <h4>Example: Copy directories only</h4>
898938 * <pre>
0 commit comments