code: public static void copyFileToDirectory(File srcFile, File destDir) throws IOException {
      copyFileToDirectory(srcFile, destDir, true);
    }
docs: Copies a file to a directory preserving the file date.
  <p>
  This method copies the contents of the specified source file
  to a file of the same name in the specified destination directory.
  The destination directory is created if it does not exist.
  If the destination file exists, then this method will overwrite it.
  <p>
  <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.
  
  @param srcFile  an existing file to copy, must not be <code>null</code>
  @param destDir  the directory to place the copy in, must not be <code>null</code>
  
  @throws NullPointerException if source or destination is null
  @throws IOException if source or destination is invalid
  @throws IOException if an IO error occurs during copying
  @see #copyFile(File, File, boolean)